Skip to content

Commit

Permalink
3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fczbkk committed Apr 6, 2023
1 parent 3117da2 commit 1b537e9
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="3.4.0"></a>
# [3.4.0](https://github.com/fczbkk/UrlMatch/compare/v3.3.5...v3.4.0) (2023-04-06)


### Features

* allow to use plus sign in path ([e545f1d](https://github.com/fczbkk/UrlMatch/commit/e545f1d)), closes [#6](https://github.com/fczbkk/UrlMatch/issues/6)



<a name="3.3.5"></a>
## [3.3.5](https://github.com/fczbkk/UrlMatch/compare/v3.3.4...v3.3.5) (2018-04-28)

Expand Down
2 changes: 1 addition & 1 deletion docs/url-match.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions lib/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ var _class = function (_UrlPart) {
{ substring: /\(/, replacement: '\\\(' }, { substring: /\)/, replacement: '\\\)' },
// assume trailing slash at the end of path is optional
{ substring: /\/$/, replacement: '\\/?' }, { substring: /\/\*$/, replacement: '((\/?)|\/*)' },
// allow letters, numbers, hyphens, dots, slashes and underscores
// instead of wildcard
{ substring: /\*/g, replacement: '[a-zA-Z0-9-./_:~!$&\'\(\)\*,;=@%]*' }];
// plus sign
{ substring: /\+/, replacement: '\\\+' },
// allow letters, numbers, plus signs, hyphens, dots, slashes
// and underscores instead of wildcard
{ substring: /\*/g, replacement: '[a-zA-Z0-9\+-./_:~!$&\'\(\)\*,;=@%]*' }];
}
}]);

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@fczbkk/url-match",
"title": "UrlMatch",
"version": "3.3.5",
"version": "3.4.0",
"description": "JavaScript object for matching URLs against patterns.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 1b537e9

Please sign in to comment.