Skip to content

Commit f283341

Browse files
committed
Simplify a regex
From #23 (comment)
1 parent 3e469d2 commit f283341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ exports.parse = function (str, opts) {
130130
return ret;
131131
}
132132

133-
str = str.trim().replace(/^(\?|#|&)/, '');
133+
str = str.trim().replace(/^[?#&]/, '');
134134

135135
if (!str) {
136136
return ret;

0 commit comments

Comments
 (0)