penguin/AstroJS

Javascript framework for my blog

commit 9e310a6fe20013dfc1c1937b1c22a67ed5a347f1

author斟酌 鵬兄 <tgckpg@gmail.com>
date2016-03-09T06:48:58Z
subjectMatch all
commit 9e310a6fe20013dfc1c1937b1c22a67ed5a347f1
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date:   2016-03-09T06:48:58Z

    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" ) ) )