1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-13 01:54:21 +02:00

search plugin; search for whole phrase #2331 #3532

This commit is contained in:
Hakim El Hattab
2023-11-23 14:08:39 +01:00
parent 339dc709da
commit 20d9eaf496
3 changed files with 3 additions and 3 deletions

View File

@@ -137,7 +137,7 @@ const Plugin = () => {
this.setRegex = function(input)
{
input = input.trim().replace(/\s/g, "|");
input = input.trim();
matchRegex = new RegExp("(" + input + ")","i");
}