mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-26 15:43:16 +08:00
#756 Escape the paths used for the --include parameter for gometalinter, which uses RE2
This commit is contained in:
1 parent
d12e990f73
commit
340c0bbac5
4 files changed
+14
-4
No files matched your search
@@ -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('/')
|
||||
Reference in new issue
Block a user