From 9e310a6fe20013dfc1c1937b1c22a67ed5a347f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Wed, 9 Mar 2016 14:48:58 +0800 Subject: [PATCH] Match all --- botanjs/src/Astro/Blog/AstroEdit/SmartInput/_this.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botanjs/src/Astro/Blog/AstroEdit/SmartInput/_this.js b/botanjs/src/Astro/Blog/AstroEdit/SmartInput/_this.js index d253281..15401ab 100644 --- a/botanjs/src/Astro/Blog/AstroEdit/SmartInput/_this.js +++ b/botanjs/src/Astro/Blog/AstroEdit/SmartInput/_this.js @@ -349,7 +349,7 @@ { var Cand = IDOMElement( c[i] ); var t = Cand.getDAttribute( "key" ); - Cand.style.display = t.match( new RegExp( "^" + keyword, "i" ) ) ? "" : "none"; + Cand.style.display = t.match( new RegExp( keyword, "i" ) ) ? "" : "none"; // Highlight the exact match if( t.match( new RegExp( "^" + keyword + "$", "i" ) ) )