mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 06:38:00 +01:00
Quiet the old add-on validator a bit.
This commit is contained in:
@@ -1022,35 +1022,35 @@ var Commands = Module("commands", {
|
|||||||
|
|
||||||
nameRegexp: util.regexp(<![CDATA[
|
nameRegexp: util.regexp(<![CDATA[
|
||||||
[^
|
[^
|
||||||
\x30-\x39 // 0-9
|
0-9
|
||||||
<forbid>
|
<forbid>
|
||||||
]
|
]
|
||||||
[^ <forbid> ]*
|
[^ <forbid> ]*
|
||||||
]]>, "", {
|
]]>, "", {
|
||||||
forbid: util.regexp(<![CDATA[
|
forbid: util.regexp(String.replace(<![CDATA[
|
||||||
\x00-\x2c // \x2d -
|
U0000-U002c // U002d -
|
||||||
\x2e-\x2f
|
U002e-U002f
|
||||||
\x3a-\x40 // \x41-\x5a a-z
|
U003a-U0040 // U0041-U005a a-z
|
||||||
\x5b-\x60 // \x61-\x7a A-Z
|
U005b-U0060 // U0061-U007a A-Z
|
||||||
\x7b-\xbf
|
U007b-U00bf
|
||||||
\u02b0-\u02ff // Spacing Modifier Letters
|
U02b0-U02ff // Spacing Modifier Letters
|
||||||
\u0300-\u036f // Combining Diacritical Marks
|
U0300-U036f // Combining Diacritical Marks
|
||||||
\u1dc0-\u1dff // Combining Diacritical Marks Supplement
|
U1dc0-U1dff // Combining Diacritical Marks Supplement
|
||||||
\u2000-\u206f // General Punctuation
|
U2000-U206f // General Punctuation
|
||||||
\u20a0-\u20cf // Currency Symbols
|
U20a0-U20cf // Currency Symbols
|
||||||
\u20d0-\u20ff // Combining Diacritical Marks for Symbols
|
U20d0-U20ff // Combining Diacritical Marks for Symbols
|
||||||
\u2400-\u243f // Control Pictures
|
U2400-U243f // Control Pictures
|
||||||
\u2440-\u245f // Optical Character Recognition
|
U2440-U245f // Optical Character Recognition
|
||||||
\u2500-\u257f // Box Drawing
|
U2500-U257f // Box Drawing
|
||||||
\u2580-\u259f // Block Elements
|
U2580-U259f // Block Elements
|
||||||
\u2700-\u27bf // Dingbats
|
U2700-U27bf // Dingbats
|
||||||
\ufe20-\ufe2f // Combining Half Marks
|
Ufe20-Ufe2f // Combining Half Marks
|
||||||
\ufe30-\ufe4f // CJK Compatibility Forms
|
Ufe30-Ufe4f // CJK Compatibility Forms
|
||||||
\ufe50-\ufe6f // Small Form Variants
|
Ufe50-Ufe6f // Small Form Variants
|
||||||
\ufe70-\ufeff // Arabic Presentation Forms-B
|
Ufe70-Ufeff // Arabic Presentation Forms-B
|
||||||
\uff00-\uffef // Halfwidth and Fullwidth Forms
|
Uff00-Uffef // Halfwidth and Fullwidth Forms
|
||||||
\ufff0-\uffff // Specials
|
Ufff0-Uffff // Specials
|
||||||
]]>)
|
]]>, /U/g, "\\u"))
|
||||||
}),
|
}),
|
||||||
|
|
||||||
validName: Class.memoize(function () util.regexp("^" + this.nameRegexp.source + "$")),
|
validName: Class.memoize(function () util.regexp("^" + this.nameRegexp.source + "$")),
|
||||||
|
|||||||
Reference in New Issue
Block a user