mirror of
https://github.com/dense-analysis/ale
synced 2024-12-19 04:45:31 +00:00
5 lines
268 B
Plaintext
5 lines
268 B
Plaintext
|
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('/')
|