WW-4365 Solves problem with matching option id to headerKey
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/3447eefd Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/3447eefd Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/3447eefd Branch: refs/heads/master Commit: 3447eefdac3972d77fb3343ea31c9d61754da285 Parents: e011096 Author: Lukasz Lenart <lukaszlen...@apache.org> Authored: Tue Sep 16 21:23:37 2014 +0200 Committer: Lukasz Lenart <lukaszlen...@apache.org> Committed: Tue Sep 16 21:23:37 2014 +0200 ---------------------------------------------------------------------- .../resources/org/apache/struts2/static/optiontransferselect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/3447eefd/core/src/main/resources/org/apache/struts2/static/optiontransferselect.js ---------------------------------------------------------------------- diff --git a/core/src/main/resources/org/apache/struts2/static/optiontransferselect.js b/core/src/main/resources/org/apache/struts2/static/optiontransferselect.js index 74e27d6..c4024a3 100644 --- a/core/src/main/resources/org/apache/struts2/static/optiontransferselect.js +++ b/core/src/main/resources/org/apache/struts2/static/optiontransferselect.js @@ -44,7 +44,7 @@ function compile(ptn) { if (ptn == '' || !window.RegExp) { return function(val) { return val == ptn; } } else { - var reg = new RegExp(ptn); + var reg = new RegExp("\\b" + ptn); return function (val) { if (val == '') { // ignore empty option added by template return true;