From 0494df022733db6499c96cdecced60b61357d093 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 26 Oct 2019 14:55:21 -0600 Subject: [PATCH] Case sensitive now --- toys/grepdict/grepdict.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toys/grepdict/grepdict.js b/toys/grepdict/grepdict.js index 7a878e2..9280729 100644 --- a/toys/grepdict/grepdict.js +++ b/toys/grepdict/grepdict.js @@ -11,7 +11,7 @@ function addWords(wl) { } function regexInput(e) { - let re = new RegExp(e.target.value, "ui") + let re = new RegExp(e.target.value, "u") let matches = document.querySelector("#matches") while (matches.firstChild) { @@ -42,4 +42,4 @@ function init(e) { document.querySelector("#regexp").addEventListener("input", regexInput) } -window.addEventListener("load", init) \ No newline at end of file +window.addEventListener("load", init)