allow passing regexp as a needle for search

This commit is contained in:
nightwing 2012-04-22 12:55:26 +04:00
commit f9c8f7c11b

View file

@ -275,6 +275,9 @@ Search.SELECTION = 2;
};
this.$assembleRegExp = function() {
if (typeof this.$options.needle != 'string')
return this.$options.needle;
if (this.$options.regExp) {
var needle = this.$options.needle;
} else {