Use a proper search input parser

This commit is contained in:
2021-03-03 14:28:17 +01:00
parent 51b682c593
commit 3e1683dfe5
2 changed files with 85 additions and 24 deletions
@@ -35,6 +35,14 @@ internal class SearchTermsParserKtTest {
tag = "example abc",
all = "this is the end"
),
createResult("tag:blah", tag = "blah"),
createResult("tag:'some words'", tag = "some words"),
createResult("tag:'some words ' global", tag = "some words ", all = "global"),
createResult(
"tag:'double quote inside single \" ' global",
tag = "double quote inside single \" ",
all = "global"
),
)
@ParameterizedTest