mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-12 21:25:46 +01:00
Move some more message strings to the properties file.
This commit is contained in:
@@ -181,12 +181,12 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
|
||||
// check for chars not in the accepted range
|
||||
this.assert(RegExp("^[" + accepted + "-]+$").test(list),
|
||||
"Character list outside the range " + accepted.quote());
|
||||
_("error.charsOutsideRange", accepted.quote()));
|
||||
|
||||
// check for illegal ranges
|
||||
for (let [match] in this.regexp.iterate(/.-./g, list))
|
||||
this.assert(match.charCodeAt(0) <= match.charCodeAt(2),
|
||||
"Invalid character range: " + list.slice(list.indexOf(match)))
|
||||
_("error.invalidCharRange", list.slice(list.indexOf(match))));
|
||||
|
||||
return RegExp("[" + util.regexp.escape(list) + "]");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user