Commit eb1f881d authored by Jörn Zaefferer's avatar Jörn Zaefferer

Fix for #979

parent 21ca78bc
...@@ -1313,6 +1313,8 @@ jQuery.extend({ ...@@ -1313,6 +1313,8 @@ jQuery.extend({
// internal only, use is(".class") // internal only, use is(".class")
has: function( t, c ) { has: function( t, c ) {
t = t.className || t; t = t.className || t;
// escape regex characters
c = c.replace(/([\.\\\+\*\?\[\^\]\$\(\)\{\}\=\!\<\>\|\:])/g, "\\$1");
return t && new RegExp("(^|\\s)" + c + "(\\s|$)").test( t ); return t && new RegExp("(^|\\s)" + c + "(\\s|$)").test( t );
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment