File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 88
99> Turn a path string such as ` /user/:name ` into a regular expression.
1010
11- Thanks to [ path-to-regexp] ( https://github.com/pillarjs/path-to-regexp ) .
11+ Thanks to [ path-to-regexp] ( https://github.com/pillarjs/path-to-regexp ) which is the original version written in javascript .
1212
1313## Usage
1414
@@ -42,7 +42,7 @@ import pathToRegexp "github.com/soongo/path-to-regexp"
4242 - ** EndsWith** Optional character, or list of characters, to treat as "end" characters.
4343 - ** Whitelist** List of characters to consider delimiters when parsing. (default: ` nil ` , any character)
4444 - ** Encode** How to encode uri. (default: ` pathToRegexp.EncodeURIComponent ` )
45- - ** Encode ** How to decode uri. (default: ` pathToRegexp.DecodeURIComponent ` )
45+ - ** Decode ** How to decode uri. (default: ` pathToRegexp.DecodeURIComponent ` )
4646
4747``` go
4848var tokens []pathToRegexp.Token
You can’t perform that action at this time.
0 commit comments