Solo hacer búsquedas de texto plano

fixes sutty/sutty#889

fixes sutty/sutty#899

fixes sutty/sutty#1475

fixes sutty/sutty#1476

fixes sutty/sutty#1937

fixes sutty/sutty#2044

fixes sutty/sutty#2107

fixes sutty/sutty#2164

fixes sutty/sutty#2193
This commit is contained in:
f 2021-07-09 18:46:31 -03:00
parent df18fd852b
commit 7550f6ee9b

View file

@ -12,7 +12,7 @@ export default class extends Controller {
if (!this.hasQTarget) return
if (!this.qTarget.value.trim().length === 0) return
return this.qTarget.value.trim().replace(':', '')
return this.qTarget.value.trim().replaceAll(/[^a-z0-9 ]/gi, '')
}
connect () {