mirror of https://github.com/hrsh7th/cmp-path
Fix PATH_REGEX
This commit is contained in:
parent
8450341c7e
commit
3a29c5131a
|
@ -1,7 +1,7 @@
|
|||
local cmp = require'cmp'
|
||||
|
||||
local NAME_REGEX = [[\%([^/\\:\*?<>'"`\|]\)]]
|
||||
local PATH_REGEX = vim.regex(([[\%(/PAT\+\)*/\zePAT*]]):gsub('PAT', NAME_REGEX))
|
||||
local NAME_REGEX = '\\%([^/\\\\:\\*?<>\'"`\\|]\\)'
|
||||
local PATH_REGEX = vim.regex(([[\%(/PAT\+\)*/\zePAT*$]]):gsub('PAT', NAME_REGEX))
|
||||
|
||||
local source = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue