Adding a test for the case where a user has added a number: at the start of the column - could have broken things.

This commit is contained in:
mike12345567 2022-08-08 19:21:06 +01:00
parent 76f0c4a289
commit fda15d3bd8
1 changed files with 9 additions and 0 deletions

View File

@ -145,4 +145,13 @@ describe("internal search", () => {
}, PARAMS)
checkLucene(response, `column:"a" OR column:"b" OR column:"c"`, PARAMS)
})
it("check a weird case for lucene building", async () => {
const response = await search.paginatedSearch({
equal: {
"1:1:column": "a",
},
}, PARAMS)
checkLucene(response, `*:* AND 1\\:column:"a"`, PARAMS)
})
})