Skip to content
Snippets Groups Projects
Commit f25d3470 authored by 最萌小汐's avatar 最萌小汐
Browse files

fix gitignore pattern `\` broken initialization

parent f2f6e878
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,8 @@
---@field ['#'] number
```
* `NEW` add supports of `love2d`
* `FIX` gitignore pattern `\` broken initialization
* `FIX` runtime errors
## 2.3.1
`2021-7-19`
......
......@@ -123,7 +123,12 @@ end
function mt:pattern(state)
if state.root then
return m.C(self:exp(state, 1))
local after = self:exp(state, 1)
if after then
return m.C(after)
else
return nil
end
else
return m.C(self:anyPath(nil, state, 1))
end
......@@ -147,5 +152,8 @@ return function (state, options)
state = state,
}, mt)
self.matcher = self:pattern(state)
if not self.matcher then
return nil
end
return self
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment