From a15cdeb0ebbae099337d4a08b91f8985f1138f18 Mon Sep 17 00:00:00 2001 From: Patrick Tang <36460266+patricksptang@users.noreply.github.com> Date: Sun, 4 Feb 2024 00:32:15 -0800 Subject: [PATCH] Exent search to find name begin with ( --- step-web/src/main/webapp/js/backbone/views/view_pick_bible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/step-web/src/main/webapp/js/backbone/views/view_pick_bible.js b/step-web/src/main/webapp/js/backbone/views/view_pick_bible.js index 0b1366725d..5d0840994e 100644 --- a/step-web/src/main/webapp/js/backbone/views/view_pick_bible.js +++ b/step-web/src/main/webapp/js/backbone/views/view_pick_bible.js @@ -181,7 +181,7 @@ var PickBibleView = Backbone.View.extend({ $('.list-group-item').hide(); $('.list-group-item.active').show(); $('.ul_selected').hide() - var regex1 = new RegExp("(^\\w*" + userInput + "|[\\s\\.]" + userInput + ")", "i"); + var regex1 = new RegExp("(^\\w*" + userInput + "|[(\\s\\.]" + userInput + ")", "i"); $( ".list-group-item").filter(function () { return regex1.test($(this).text());}).show(); var itemsShown = $("li.list-group-item:visible"); for (var i = 0; i < itemsShown.length; i++) {