Eliminar caracteres especiales de Lunr
https://lunrjs.com/guides/searching.html
This commit is contained in:
parent
7550f6ee9b
commit
4840d59e16
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ export default class extends Controller {
|
||||||
if (!this.hasQTarget) return
|
if (!this.hasQTarget) return
|
||||||
if (!this.qTarget.value.trim().length === 0) return
|
if (!this.qTarget.value.trim().length === 0) return
|
||||||
|
|
||||||
return this.qTarget.value.trim().replaceAll(/[^a-z0-9 ]/gi, '')
|
return this.qTarget.value.trim().replaceAll(/[:~\*\^\+\-]/gi, '')
|
||||||
}
|
}
|
||||||
|
|
||||||
connect () {
|
connect () {
|
||||||
|
|
Loading…
Reference in a new issue