diff --git a/nginx/public/node/frontend/public/js/app/search/chant-search/SearchInputView.js b/nginx/public/node/frontend/public/js/app/search/chant-search/SearchInputView.js index 677eafc8..530a4ec9 100644 --- a/nginx/public/node/frontend/public/js/app/search/chant-search/SearchInputView.js +++ b/nginx/public/node/frontend/public/js/app/search/chant-search/SearchInputView.js @@ -32,7 +32,7 @@ export default Marionette.ItemView.extend({ // Create a regex that will match all invalid volpiano // characters - this.invalidVolpianoRegex = /[^1-9a-sw-zA-SW-Z-\(\)]/i + this.invalidVolpianoRegex = new RegExp('[^1-9a-sw-zA-SW-Z-\(\)]', 'g') }, /** We don't need to do anything real on a submit because the query is set on each change. */