Skip to content

Commit

Permalink
ignore ; in FIRST_SEGMENT_REGEX
Browse files Browse the repository at this point in the history
missed this in #13
  • Loading branch information
Tom Jenkinson committed Aug 31, 2018
1 parent 0e05b7d commit 0f5d3c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/url-toolkit.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* jshint ignore:end */

var URL_REGEX = /^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/;
var FIRST_SEGMENT_REGEX = /^([^\/;?#]*)(.*)$/;
var FIRST_SEGMENT_REGEX = /^([^\/?#]*)(.*)$/;
var SLASH_DOT_REGEX = /(?:\/|^)\.(?=\/)/g;
var SLASH_DOT_DOT_REGEX = /(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g;

Expand Down

0 comments on commit 0f5d3c3

Please sign in to comment.