Correctly handle single :

This commit is contained in:
Guillaume Gomez
2022-04-18 23:11:42 +02:00
parent 5c6c1e110f
commit 8d0e10cfbe
2 changed files with 16 additions and 10 deletions

View File

@@ -34,6 +34,7 @@ const QUERY = [
"a<>:",
"a,:",
" a<> :",
"mod : :",
];
const PARSED = [
@@ -352,4 +353,13 @@ const PARSED = [
userQuery: "a<> :",
error: 'Unexpected `<` in type filter',
},
{
elems: [],
foundElems: 0,
original: "mod : :",
returned: [],
typeFilter: -1,
userQuery: "mod : :",
error: 'Unexpected `:`',
},
];