diff --git a/_packs/controllers/search_controller.js b/_packs/controllers/search_controller.js index 59305a5..eae213c 100644 --- a/_packs/controllers/search_controller.js +++ b/_packs/controllers/search_controller.js @@ -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 () {