Pass the i
modifier as second argument:
new RegExp('^' + query, 'i');
Have a look at the documentation for more information.
Pass the i
modifier as second argument:
new RegExp('^' + query, 'i');
Have a look at the documentation for more information.