Fix #374
This commit is contained in:
@@ -29,6 +29,7 @@ describe('matcher', function()
|
|||||||
assert.is.truthy(matcher.match('usela', 'useLayoutEffect') > matcher.match('usela', 'useDataLayer'))
|
assert.is.truthy(matcher.match('usela', 'useLayoutEffect') > matcher.match('usela', 'useDataLayer'))
|
||||||
assert.is.truthy(matcher.match('true', 'v:true', { 'true' }) == matcher.match('true', 'true'))
|
assert.is.truthy(matcher.match('true', 'v:true', { 'true' }) == matcher.match('true', 'true'))
|
||||||
assert.is.truthy(matcher.match('g', 'get', { 'get' }) > matcher.match('g', 'dein#get', { 'dein#get' }))
|
assert.is.truthy(matcher.match('g', 'get', { 'get' }) > matcher.match('g', 'dein#get', { 'dein#get' }))
|
||||||
|
assert.is.truthy(matcher.match('2', '[[2021') >= 1)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('debug', function()
|
it('debug', function()
|
||||||
|
|||||||
@@ -82,6 +82,9 @@ char.is_semantic_index = function(text, index)
|
|||||||
if not char.is_alpha(prev) and char.is_alpha(curr) then
|
if not char.is_alpha(prev) and char.is_alpha(curr) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
if not char.is_digit(prev) and char.is_digit(curr) then
|
||||||
|
return true
|
||||||
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user