hrsh7th / cmp-path

nvim-cmp source for path
MIT License
627 stars 60 forks source link

Regarding the regex NAME_REGEX #75

Open nyngwang opened 8 months ago

nyngwang commented 8 months ago

Why it's

'\\%([^/\\\\:\\*?<>\'"`\\|]\\)'

in the implementation?

Isn't that the * doesn't have special meaning in character class in vimscript so we don't need to escape it? The same question for the | before the close bracket ]. Thanks for your reading.