region search: don't force match to start/end of string
This commit is contained in:
parent
81e7251af9
commit
76ca083ad7
@ -108,7 +108,7 @@ window.plugin.regions.search = function(query) {
|
||||
var faces = window.plugin.regions.FACE_NAMES.join('|');
|
||||
var codewords = window.plugin.regions.CODE_WORD.join('|');
|
||||
|
||||
var regExp = new RegExp('^('+faces+')([01][0-9])[ -]?('+codewords+')[ -]?([01][0-9])$','i');
|
||||
var regExp = new RegExp('('+faces+')([01][0-9])[ -]?('+codewords+')[ -]?([01][0-9])','i');
|
||||
|
||||
var match = regExp.exec(query.term);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user