Skip to content

Commit

Permalink
fix: allow equal signs in parameters (commonly found at the end of ba…
Browse files Browse the repository at this point in the history
…se 64 encoded strings)
  • Loading branch information
troch committed May 13, 2018
1 parent 84c67ce commit 5c98fb6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/rules.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
export const defaultOrConstrained = (match: string): string =>
'(' + (match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|]+") + ')'
'(' +
(match ? match.replace(/(^<|>$)/g, '') : "[a-zA-Z0-9-_.~%':|=]+") +
')'

export type RegExpFactory = (match: any) => RegExp

Expand Down

0 comments on commit 5c98fb6

Please sign in to comment.