allow passing regexp as a needle for search
This commit is contained in:
parent
a80828bab5
commit
f9c8f7c11b
1 changed files with 3 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue