summaryrefslogtreecommitdiff
path: root/test/test_regex_escaping.vader
blob: b79b8c561adc6dcebf0427acf03e0fedb8785275 (plain)
1
2
3
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('/')