[Pkg-mozext-commits] [tabmixplus] 10/123: Follow up bug 369778 - Fix CommonDialog.jsm RegExp usage expecting an unmatched capture group to match as "" and not |undefined|
David Prévot
taffit at moszumanska.debian.org
Wed Sep 17 21:16:22 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit bbef5eaea78ec8dd21d8c2d7605024ce2b9afc96
Author: onemen <tabmix.onemen at gmail.com>
Date: Sat Aug 9 18:00:40 2014 +0300
Follow up bug 369778 - Fix CommonDialog.jsm RegExp usage expecting an unmatched capture group to match as "" and not |undefined|
---
chrome/content/session/promptservice.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/session/promptservice.js b/chrome/content/session/promptservice.js
index 1b255bd..8f55aec 100644
--- a/chrome/content/session/promptservice.js
+++ b/chrome/content/session/promptservice.js
@@ -153,10 +153,10 @@
// copy from commonDialog.js
function setLabelForNode(aNode, aLabel, aIsLabelFlag) {
var accessKey = null;
- if (/ *\(\&([^&])\)(:)?$/.test(aLabel)) {
+ if (/ *\(\&([^&])\)(:?)$/.test(aLabel)) {
aLabel = RegExp.leftContext + RegExp.$2;
accessKey = RegExp.$1;
- } else if (/^(.*[^&])?\&(([^&]).*$)/.test(aLabel)) {
+ } else if (/^([^&]*)\&(([^&]).*$)/.test(aLabel)) {
aLabel = RegExp.$1 + RegExp.$2;
accessKey = RegExp.$3;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list