From 3af89a789785a69d340d81b3efc0cbca913bbb72 Mon Sep 17 00:00:00 2001 From: YT Date: Thu, 20 Apr 2017 20:26:45 +0900 Subject: [PATCH] modify branch filter method --- src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html b/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html index 09e3febf1..4d3c673b1 100644 --- a/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html +++ b/src/main/twirl/gitbucket/core/helper/branchcontrol.scala.html @@ -31,7 +31,7 @@ $('#branch-control-input').keyup(function() { var inputVal = $('#branch-control-input').val(); $.each($('#branch-control-input').parent().parent().find('a'), function(index, elem) { - if (!inputVal || !elem.text.trim() || elem.text.trim().lastIndexOf(inputVal, 0) >= 0) { + if (!inputVal || !elem.text.trim() || elem.text.trim().match(new RegExp(inputVal,'i'))) { $(elem).parent().show(); } else { $(elem).parent().hide();