Skip to content

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fczbkk committed Jul 17, 2016
1 parent 0662e33 commit 087ff6e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
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.1.0"></a>
# [3.1.0](https://github.com/fczbkk/UrlMatch/compare/v3.0.0...v3.1.0) (2016-07-17)


### Bug Fixes

* assume path always ends with optional trailing slash if missing([0662e33](https://github.com/fczbkk/UrlMatch/commit/0662e33))



<a name="3.0.0"></a>
# [3.0.0](https://github.com/fczbkk/UrlMatch/compare/v2.2.0...v3.0.0) (2016-05-31)

Expand Down
4 changes: 4 additions & 0 deletions lib/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ var _class = function (_UrlPart) {
key: 'sanitize_replacements',
get: function get() {
return [
// add trailing slash if path is empty
{ substring: /^$/, replacement: '\/' },
// add trailing slash if path does not end with asterisk or trailing slash
{ substring: /[^/*]$/, replacement: '$&\/' },
// assume trailing slash at the end of path is optional
{ substring: /\/$/, replacement: '\\/?' }, { substring: /\/\*$/, replacement: '((\/?)|\/*)' },
// allow letters, numbers, hyphens, dots, slashes and underscores
Expand Down
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.0.0",
"version": "3.1.0",
"description": "JavaScript object for matching URLs against patterns.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 087ff6e

Please sign in to comment.