Skip to content

Commit

Permalink
fix(resolve): regex params optionals
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonornela committed Nov 24, 2016
1 parent a8d1359 commit cbea3b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export class Resolve {
url = this.replaceUrlHost(url);

// delete params not required
let regex = new RegExp('(?:(:?(:?\\?|&)[\w\-]+=)|\/)\\' + this.preffixVariable + '[\w\-]+\\' + this.suffixVariable, 'g');
let regex = new RegExp('(?:(:?(:?\\?|&)[\\w\\-]+=)|\\/)\\' + this.preffixVariable + '[\\w\\-]+\\' + this.suffixVariable, 'g');
url = url.replace(regex, '');

return url;
Expand Down

0 comments on commit cbea3b7

Please sign in to comment.