From d62ccfd234f702b66124a673e54076dbdfe693be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81=20Cruz?= Date: Wed, 29 May 2013 10:36:57 +0100 Subject: [PATCH] Change name separator of the endpoint (can't use pipe duh). --- lib/util/endpointParser.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util/endpointParser.js b/lib/util/endpointParser.js index 89d11716..de13ccbb 100644 --- a/lib/util/endpointParser.js +++ b/lib/util/endpointParser.js @@ -2,7 +2,7 @@ var semver = require('semver'); var createError = require('./createError'); function decompose(endpoint) { - var regExp = /^(?:([\w\-]|(?:[\w\.\-]+[\w\-])?)\|)?([^\|#]+)(?:#(.*))?$/; + var regExp = /^(?:([\w\-]|(?:[\w\.\-]+[\w\-])?)=)?([^\|#]+)(?:#(.*))?$/; var matches = endpoint.match(regExp); if (!matches) { @@ -20,7 +20,7 @@ function compose(decEndpoint) { var composed = ''; if (decEndpoint.name) { - composed += decEndpoint.name + '|'; + composed += decEndpoint.name + '='; } composed += decEndpoint.source; @@ -33,7 +33,7 @@ function compose(decEndpoint) { } function json2decomposed(key, value) { - var endpoint = key + '|'; + var endpoint = key + '='; if (semver.valid(value) != null || semver.validRange(value) != null) { endpoint += key + '#' + value;