Match all

This commit is contained in:
斟酌 鵬兄 2016-03-09 14:48:58 +08:00
parent 041617f0b4
commit 9e310a6fe2

View File

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