🌧 Describe the problem
Search queries Swedish like letar efter söndriga saker or in spanish with ñ break the raw query, and result in short search strings from .raw
Ex. letar efter söndriga saker -> letar efter s
The default cutFn is overridden with to allow all characters.
I suspect the behaviour comes from isWord in the scanner.
⛅ Expected behavior
Expected behaviour would be to also allow these characters.
🔄 Minimal reproduction
func isWord(ch rune) bool {
return ch >= '!' && ch <= '~' && ch != ':'
}
func TestIsWord(t *testing.T) {
fmt.Println(isWord('ñ')) // false
}
💠 Version: go-queryparser
v3.0.0
🖥 Version: Operating system
linux/ubuntu
⚙ Additional context
No response
🤝 Requirements
🌧 Describe the problem
Search queries Swedish like
letar efter söndriga sakeror in spanish withñbreak the raw query, and result in short search strings from.rawEx.
letar efter söndriga saker->letar efter sThe default cutFn is overridden with to allow all characters.
I suspect the behaviour comes from isWord in the scanner.
⛅ Expected behavior
Expected behaviour would be to also allow these characters.
🔄 Minimal reproduction
💠 Version: go-queryparser
v3.0.0
🖥 Version: Operating system
linux/ubuntu
⚙ Additional context
No response
🤝 Requirements