#756 Escape the paths used for the --include parameter for gometalinter, which uses RE2
This commit is contained in:
parent
d12e990f73
commit
340c0bbac5
4 changed files with 14 additions and 4 deletions
4
test/test_regex_escaping.vader
Normal file
4
test/test_regex_escaping.vader
Normal file
|
@ -0,0 +1,4 @@
|
|||
Execute(ale#util#EscapePCRE should escape strings for PCRE or RE2 appropriately):
|
||||
AssertEqual '\\\^\$\*\+\?\.\(\)\|\{\}\[\]', ale#util#EscapePCRE('\^$*+?.()|{}[]')
|
||||
AssertEqual 'abcABC09', ale#util#EscapePCRE('abcABC09')
|
||||
AssertEqual '/', ale#util#EscapePCRE('/')
|
Loading…
Add table
Add a link
Reference in a new issue