Fix PATH_REGEX

This commit is contained in:
hrsh7th 2021-09-08 13:36:26 +09:00
parent 8450341c7e
commit 3a29c5131a
1 changed files with 2 additions and 2 deletions

View File

@ -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 = {}