Skip to content

Commit

Permalink
Merge pull request #59 from 5monkeys/fix/uri-encoded-parameters
Browse files Browse the repository at this point in the history
Allow uri-encoded strings to be queried for
  • Loading branch information
skrhlm authored Jun 16, 2021
2 parents 6615467 + 3354a60 commit 1808be6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "django-bananas",
"version": "3.4.2",
"version": "3.4.3",
"license": "MIT",
"author": "Jonas Lundberg",
"repository": "5monkeys/django-bananas.js",
Expand Down Expand Up @@ -103,4 +103,4 @@
"webpack-cli": "3.3.5",
"webpack-dev-server": "3.7.2"
}
}
}
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class Router {
`{${param.name}}`,
param.type === "integer"
? `(\\d+)` // Named: `(?<${param.name}>\\d+)`
: `([\\w\\d_-]+)` // Named: `(?<${param.name}>[\\w\\d_-]+)`
: `([\\.\\%\\w\\d_-]+)` // Named: `(?<${param.name}>[\\.\\%\\w\\d_-]+)`
),
`^${path}$`
)
Expand Down

0 comments on commit 1808be6

Please sign in to comment.