Skip to content

Commit

Permalink
Merge pull request #2934 from tomachalek/supp1811_b
Browse files Browse the repository at this point in the history
Fix additional cql char escaping and syntax highlighter supp.
  • Loading branch information
tomachalek authored Jan 9, 2020
2 parents 119f440 + b067595 commit 553d17a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/files/js/models/wordlist/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export class WordlistResultModel extends StatefulModel {
}

private createPQuery(s:string):string {
return `[${this.formModel.getState().wlattr}="${s.replace(/([.?+*\[\]{}])/g, '\\$1')}"]`;
return `[${this.formModel.getState().wlattr}="${s.replace(/([.?+*\[\]{}$^|])/g, '\\$1')}"]`;
}

private processPageLoad(skipHistory=false):void {
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/cql.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ RG_OP =
[,\-_\^ ] / [0-9\?\*\+\.\|]

RG_ESCAPED =
'\\{' / '\\}' / '\\(' / '\\)' / '\\[' / '\\]' / '\\?' / '\\!' / '\\.' / '\\"' / '\\*' / '\\+'
'\\{' / '\\}' / '\\(' / '\\)' / '\\[' / '\\]' / '\\?' / '\\!' / '\\.' / '\\"' / '\\*' / '\\+' / '\\^' / '\\$' / '\\|'

// {n}, {n,}, {n,m}
RgRange =
Expand Down

0 comments on commit 553d17a

Please sign in to comment.