Skip to content

Commit 346047a

Browse files
committed
Fix mistakes in readme
1 parent c8fdd2b commit 346047a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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
4848
var tokens []pathToRegexp.Token

0 commit comments

Comments
 (0)