From 14aab71cd7db0538f2ef893fcceddfcbff30dad3 Mon Sep 17 00:00:00 2001 From: Alberto Castillo - acg Date: Sat, 10 Sep 2016 12:17:17 -0500 Subject: [PATCH] Fixed issue #2670. URL parsing '?#' (#2827) --- src/regexp-utils.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regexp-utils.coffee b/src/regexp-utils.coffee index f9c0bf92d..4de1817a8 100644 --- a/src/regexp-utils.coffee +++ b/src/regexp-utils.coffee @@ -101,7 +101,7 @@ RegExpUtils = # optionally followed by: a query string and/or a #location # (last character must not be puncation, hence two groups) - '(?:(\\?[\\-\\+=&;%@\\.\\w_]*[\\-\\+=&;%@\\w_\\/]+)?#?(?:[\'\\$\\&\\(\\)\\*\\+,;=\\.\\!\\/\\\\\\w%-]*[\\/\\\\\\w]+)?)?' + '(?:(\\?[\\-\\+=&;%@\\.\\w_\\#]*[\\#\\-\\+=&;%@\\w_\\/]+)?#?(?:[\'\\$\\&\\(\\)\\*\\+,;=\\.\\!\\/\\\\\\w%-]*[\\/\\\\\\w]+)?)?' ')?' ')' ]