@lcap/nasl-utils 4.4.0-beta.6 → 4.4.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/out/index.d.ts +5 -0
  2. package/out/index.d.ts.map +1 -1
  3. package/out/index.js +12 -1
  4. package/out/index.js.map +1 -1
  5. package/out/process.d.ts +10 -2
  6. package/out/process.d.ts.map +1 -1
  7. package/out/process.js +24 -2
  8. package/out/process.js.map +1 -1
  9. package/out/regex-validator/ExpressionLexer.d.ts +92 -0
  10. package/out/regex-validator/ExpressionLexer.d.ts.map +1 -0
  11. package/out/regex-validator/ExpressionLexer.js +814 -0
  12. package/out/regex-validator/ExpressionLexer.js.map +1 -0
  13. package/out/regex-validator/index.d.ts +5 -0
  14. package/out/regex-validator/index.d.ts.map +1 -0
  15. package/out/regex-validator/index.js +16 -0
  16. package/out/regex-validator/index.js.map +1 -0
  17. package/out/regex-validator/presetRegexr.d.ts +6 -0
  18. package/out/regex-validator/presetRegexr.d.ts.map +1 -0
  19. package/out/regex-validator/presetRegexr.js +30 -0
  20. package/out/regex-validator/presetRegexr.js.map +1 -0
  21. package/out/regex-validator/profiles/core.d.ts +347 -0
  22. package/out/regex-validator/profiles/core.d.ts.map +1 -0
  23. package/out/regex-validator/profiles/core.js +392 -0
  24. package/out/regex-validator/profiles/core.js.map +1 -0
  25. package/out/regex-validator/profiles/javascript.d.ts +12 -0
  26. package/out/regex-validator/profiles/javascript.d.ts.map +1 -0
  27. package/out/regex-validator/profiles/javascript.js +135 -0
  28. package/out/regex-validator/profiles/javascript.js.map +1 -0
  29. package/out/regex-validator/profiles/pcre.d.ts +44 -0
  30. package/out/regex-validator/profiles/pcre.d.ts.map +1 -0
  31. package/out/regex-validator/profiles/pcre.js +62 -0
  32. package/out/regex-validator/profiles/pcre.js.map +1 -0
  33. package/out/regex-validator/profiles/profiles.d.ts +6 -0
  34. package/out/regex-validator/profiles/profiles.d.ts.map +1 -0
  35. package/out/regex-validator/profiles/profiles.js +46 -0
  36. package/out/regex-validator/profiles/profiles.js.map +1 -0
  37. package/out/regex-validator/reference_content.d.ts +3 -0
  38. package/out/regex-validator/reference_content.d.ts.map +1 -0
  39. package/out/regex-validator/reference_content.js +790 -0
  40. package/out/regex-validator/reference_content.js.map +1 -0
  41. package/out/regex-validator/utils/Utils.d.ts +5 -0
  42. package/out/regex-validator/utils/Utils.d.ts.map +1 -0
  43. package/out/regex-validator/utils/Utils.js +16 -0
  44. package/out/regex-validator/utils/Utils.js.map +1 -0
  45. package/package.json +2 -2
@@ -0,0 +1,392 @@
1
+ "use strict";
2
+ /*
3
+ RegExr: Learn, Build, & Test RegEx
4
+ Copyright (C) 2017 gskinner.com, inc.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ /*
21
+ The core profile essentially defines every feature we support, and is then pared down by other profiles. All values should be y (true).
22
+
23
+ It also acts in part as pseudo documentation for all of the "type" values.
24
+ */
25
+ let y = true, n = false;
26
+ let core = {
27
+ id: "core",
28
+ flags: {
29
+ "g": "global", // note that this is not a real flag in some flavors, but a different method call
30
+ "i": "caseinsensitive",
31
+ "m": "multiline",
32
+ "s": "dotall",
33
+ "u": "unicode",
34
+ "y": "sticky",
35
+ "x": "extended",
36
+ "U": "ungreedy"
37
+ },
38
+ // reserved characters that need to be escaped:
39
+ escChars: "+*?^$\\.[]{}()|/".split("").reduce((o, c) => { o[c] = y; return o; }, {}),
40
+ // escape chars that are specifically not supported by the flavor:
41
+ badEscChars: n,
42
+ escCharCodes: {
43
+ "0": 0, // null
44
+ "a": 7, // bell
45
+ "t": 9, // tab
46
+ "n": 10, // lf
47
+ "v": 11, // vertical tab
48
+ "f": 12, // form feed
49
+ "r": 13, // cr
50
+ "e": 27 // escape
51
+ },
52
+ escCharTypes: {
53
+ "A": "bos",
54
+ "b": "wordboundary",
55
+ "B": "notwordboundary",
56
+ "d": "digit",
57
+ "D": "notdigit",
58
+ "G": "prevmatchend",
59
+ "h": "hwhitespace",
60
+ "H": "nothwhitespace",
61
+ "K": "keepout",
62
+ "N": "notlinebreak",
63
+ "R": "linebreak",
64
+ "s": "whitespace",
65
+ "S": "notwhitespace",
66
+ "v": "vwhitespace",
67
+ "V": "notvwhitespace",
68
+ "w": "word",
69
+ "W": "notword",
70
+ "X": "unicodegrapheme",
71
+ "Z": "eos",
72
+ "z": "abseos"
73
+ },
74
+ charTypes: {
75
+ ".": "dot",
76
+ "|": "alt",
77
+ "$": "eof",
78
+ "^": "bof",
79
+ "?": "opt", // also: "lazy"
80
+ "+": "plus", // also: "possessive"
81
+ "*": "star"
82
+ },
83
+ unquantifiable: {
84
+ // all group/set open tokens are unquantifiable by default (ie. tokens with a .close value)
85
+ "quant": y,
86
+ "plus": y,
87
+ "star": y,
88
+ "opt": y,
89
+ "lazy": y,
90
+ "possessive": y,
91
+ "eof": y,
92
+ "bof": y,
93
+ "eos": y,
94
+ "abseos": y,
95
+ "alt": y,
96
+ "open": y,
97
+ "mode": y,
98
+ "comment": y, // TODO: this should actually be ignored by quantifiers.
99
+ "condition": y
100
+ },
101
+ unicodeScripts: {
102
+ // from: http://www.pcre.org/original/doc/html/pcrepattern.html
103
+ "Arabic": y,
104
+ "Armenian": y,
105
+ "Avestan": y,
106
+ "Balinese": y,
107
+ "Bamum": y,
108
+ "Bassa_Vah": y,
109
+ "Batak": y,
110
+ "Bengali": y,
111
+ "Bopomofo": y,
112
+ "Brahmi": y,
113
+ "Braille": y,
114
+ "Buginese": y,
115
+ "Buhid": y,
116
+ "Canadian_Aboriginal": y,
117
+ "Carian": y,
118
+ "Caucasian_Albanian": y,
119
+ "Chakma": y,
120
+ "Cham": y,
121
+ "Cherokee": y,
122
+ "Common": y,
123
+ "Coptic": y,
124
+ "Cuneiform": y,
125
+ "Cypriot": y,
126
+ "Cyrillic": y,
127
+ "Deseret": y,
128
+ "Devanagari": y,
129
+ "Duployan": y,
130
+ "Egyptian_Hieroglyphs": y,
131
+ "Elbasan": y,
132
+ "Ethiopic": y,
133
+ "Georgian": y,
134
+ "Glagolitic": y,
135
+ "Gothic": y,
136
+ "Grantha": y,
137
+ "Greek": y,
138
+ "Gujarati": y,
139
+ "Gurmukhi": y,
140
+ "Han": y,
141
+ "Hangul": y,
142
+ "Hanunoo": y,
143
+ "Hebrew": y,
144
+ "Hiragana": y,
145
+ "Imperial_Aramaic": y,
146
+ "Inherited": y,
147
+ "Inscriptional_Pahlavi": y,
148
+ "Inscriptional_Parthian": y,
149
+ "Javanese": y,
150
+ "Kaithi": y,
151
+ "Kannada": y,
152
+ "Katakana": y,
153
+ "Kayah_Li": y,
154
+ "Kharoshthi": y,
155
+ "Khmer": y,
156
+ "Khojki": y,
157
+ "Khudawadi": y,
158
+ "Lao": y,
159
+ "Latin": y,
160
+ "Lepcha": y,
161
+ "Limbu": y,
162
+ "Linear_A": y,
163
+ "Linear_B": y,
164
+ "Lisu": y,
165
+ "Lycian": y,
166
+ "Lydian": y,
167
+ "Mahajani": y,
168
+ "Malayalam": y,
169
+ "Mandaic": y,
170
+ "Manichaean": y,
171
+ "Meetei_Mayek": y,
172
+ "Mende_Kikakui": y,
173
+ "Meroitic_Cursive": y,
174
+ "Meroitic_Hieroglyphs": y,
175
+ "Miao": y,
176
+ "Modi": y,
177
+ "Mongolian": y,
178
+ "Mro": y,
179
+ "Myanmar": y,
180
+ "Nabataean": y,
181
+ "New_Tai_Lue": y,
182
+ "Nko": y,
183
+ "Ogham": y,
184
+ "Ol_Chiki": y,
185
+ "Old_Italic": y,
186
+ "Old_North_Arabian": y,
187
+ "Old_Permic": y,
188
+ "Old_Persian": y,
189
+ "Old_South_Arabian": y,
190
+ "Old_Turkic": y,
191
+ "Oriya": y,
192
+ "Osmanya": y,
193
+ "Pahawh_Hmong": y,
194
+ "Palmyrene": y,
195
+ "Pau_Cin_Hau": y,
196
+ "Phags_Pa": y,
197
+ "Phoenician": y,
198
+ "Psalter_Pahlavi": y,
199
+ "Rejang": y,
200
+ "Runic": y,
201
+ "Samaritan": y,
202
+ "Saurashtra": y,
203
+ "Sharada": y,
204
+ "Shavian": y,
205
+ "Siddham": y,
206
+ "Sinhala": y,
207
+ "Sora_Sompeng": y,
208
+ "Sundanese": y,
209
+ "Syloti_Nagri": y,
210
+ "Syriac": y,
211
+ "Tagalog": y,
212
+ "Tagbanwa": y,
213
+ "Tai_Le": y,
214
+ "Tai_Tham": y,
215
+ "Tai_Viet": y,
216
+ "Takri": y,
217
+ "Tamil": y,
218
+ "Telugu": y,
219
+ "Thaana": y,
220
+ "Thai": y,
221
+ "Tibetan": y,
222
+ "Tifinagh": y,
223
+ "Tirhuta": y,
224
+ "Ugaritic": y,
225
+ "Vai": y,
226
+ "Warang_Citi": y,
227
+ "Yi": y
228
+ },
229
+ unicodeCategories: {
230
+ // from: http://www.pcre.org/original/doc/html/pcrepattern.html
231
+ "C": y, // Other
232
+ "Cc": y, // Control
233
+ "Cf": y, // Format
234
+ "Cn": y, // Unassigned
235
+ "Co": y, // Private use
236
+ "Cs": y, // Surrogate
237
+ "L": y, // Letter
238
+ "L&": y, // Any letter
239
+ "Ll": y, // Lower case letter
240
+ "Lm": y, // Modifier letter
241
+ "Lo": y, // Other letter
242
+ "Lt": y, // Title case letter
243
+ "Lu": y, // Upper case letter
244
+ "M": y, // Mark
245
+ "Mc": y, // Spacing mark
246
+ "Me": y, // Enclosing mark
247
+ "Mn": y, // Non-spacing mark
248
+ "N": y, // Number
249
+ "Nd": y, // Decimal number
250
+ "Nl": y, // Letter number
251
+ "No": y, // Other number
252
+ "P": y, // Punctuation
253
+ "Pc": y, // Connector punctuation
254
+ "Pd": y, // Dash punctuation
255
+ "Pe": y, // Close punctuation
256
+ "Pf": y, // Final punctuation
257
+ "Pi": y, // Initial punctuation
258
+ "Po": y, // Other punctuation
259
+ "Ps": y, // Open punctuation
260
+ "S": y, // Symbol
261
+ "Sc": y, // Currency symbol
262
+ "Sk": y, // Modifier symbol
263
+ "Sm": y, // Mathematical symbol
264
+ "So": y, // Other symbol
265
+ "Z": y, // Separator
266
+ "Zl": y, // Line separator
267
+ "Zp": y, // Paragraph separator
268
+ "Zs": y // Space separator
269
+ },
270
+ posixCharClasses: {
271
+ // from: http://www.pcre.org/original/doc/html/pcrepattern.html
272
+ "alnum": y, // letters and digits
273
+ "alpha": y, // letters
274
+ "ascii": y, // character codes 0 - 127
275
+ "blank": y, // space or tab only
276
+ "cntrl": y, // control characters
277
+ "digit": y, // decimal digits (same as \d)
278
+ "graph": y, // printing characters, excluding space
279
+ "lower": y, // lower case letters
280
+ "print": y, // printing characters, including space
281
+ "punct": y, // printing characters, excluding letters and digits and space
282
+ "space": y, // white space (the same as \s from PCRE 8.34)
283
+ "upper": y, // upper case letters
284
+ "word": y, // "word" characters (same as \w)
285
+ "xdigit": y // hexadecimal digits
286
+ },
287
+ modes: {
288
+ "i": "caseinsensitive",
289
+ "s": "dotall",
290
+ "m": "multiline",
291
+ "x": "freespacing",
292
+ "J": "samename",
293
+ "U": "switchlazy"
294
+ },
295
+ tokens: {
296
+ // note that not all of these are actively used in the lexer, but are included for completeness.
297
+ "open": y, // opening /
298
+ "close": y, // closing /
299
+ "char": y, // abc
300
+ // classes:
301
+ // also in escCharTypes and charTypes
302
+ "set": y, // [a-z]
303
+ "setnot": y, // [^a-z]
304
+ "setclose": y, // ]
305
+ "range": y, // [a-z]
306
+ "unicodecat": y, // \p{Ll} \P{^Ll} \pL
307
+ "notunicodecat": y, // \P{Ll} \p{^Ll} \PL
308
+ "unicodescript": y, // \p{Cherokee} \P{^Cherokee}
309
+ "notunicodescript": y, // \P{Cherokee} \p{^Cherokee}
310
+ "posixcharclass": y, // [[:alpha:]]
311
+ // not in supported flavors: "posixcollseq": y, // [[.foo.]] // this is recognized by the lexer, currently returns "notsupported" error
312
+ // not in supported flavors: "unicodeblock": y, // \p{InThai} \p{IsThai} and NOT \P
313
+ // not in supported flavors: "subtract": y, // [base-[subtract]]
314
+ // not in supported flavors: "intersect": y, // [base&&[intersect]]
315
+ // esc:
316
+ // also in escCharCodes and escCharTypes
317
+ "escoctal": y, // \11
318
+ "escunicodeu": y, // \uFFFF
319
+ "escunicodeub": y, // \u{00A9}
320
+ "escunicodexb": y, // \x{00A9}
321
+ "escsequence": y, // \Q...\E
322
+ "eschexadecimal": y, // \xFF
323
+ "esccontrolchar": y, // \cA
324
+ "escoctalo": y, // \o{377} // resolved to escoctal in lexer, no docs required
325
+ "escchar": y, // \m (unrecognized escapes) // no reference documentation required
326
+ // group:
327
+ "group": y, // (foo)
328
+ "groupclose": y, // )
329
+ "noncapgroup": y, // (?:foo)
330
+ "namedgroup": y, // (?P<name>foo) (?<name>foo) (?'name'foo)
331
+ "atomic": y, // (?>foo|bar)
332
+ "define": y, // (?(DEFINE)foo)
333
+ "branchreset": y, // (?|(a)|(b))
334
+ // lookaround:
335
+ "poslookbehind": y, // (?<=foo)
336
+ "neglookbehind": y, // (?<!foo)
337
+ "poslookahead": y, // (?=foo)
338
+ "neglookahead": y, // (?!foo)
339
+ // ref:
340
+ "namedref": y, // \k<name> \k'name' \k{name} (?P=name) \g{name}
341
+ "numref": y, // \1
342
+ "extnumref": y, // \g{-1} \g{+1} \g{1} \g1 \g-1
343
+ "recursion": y, // (?R) (?0) \g<0> \g'0'
344
+ "numsubroutine": y, // \g<1> \g'-1' (?1) (?-1)
345
+ "namedsubroutine": y, // \g<name> \g'name' (?&name) (?P>name)
346
+ // quantifiers:
347
+ // also in specialChars
348
+ "quant": y, // {1,2}
349
+ "possessive": y, // ++
350
+ "lazy": y, // ?
351
+ // special:
352
+ "conditional": y, // (?(?=if)then|else)
353
+ "condition": y, // (?=if) any lookaround
354
+ "conditionalelse": y, // |
355
+ "conditionalgroup": y, // (?(1)a|b) (?(-1)a|b) (?(name)a|b)
356
+ "mode": y, // (?i-x) see modes above
357
+ "comment": y, // (?#comment)
358
+ // meta:
359
+ "matchanyset": y // [\s\S]
360
+ },
361
+ substTokens: {
362
+ // named references aren't supported in JS or PCRE / PHP
363
+ "subst_$esc": y, // $$
364
+ "subst_$&match": y, // $&
365
+ "subst_$before": y, // $`
366
+ "subst_$after": y, // $'
367
+ "subst_$group": y, // $1 $99 // resolved to subst_group in lexer, no docs required
368
+ "subst_$bgroup": y, // ${1} ${99} // resolved to subst_group in lexer, no docs required
369
+ "subst_bsgroup": y, // \1 \99 // resolved to subst_group in lexer, no docs required
370
+ "subst_group": y, // $1 \1 \{1} // combined in docs, not used by lexer
371
+ "subst_0match": y, // $0 \0 \{0}
372
+ // this isn't a feature of the engine, but of RegExr:
373
+ "subst_esc": y // \n \r \u1234
374
+ },
375
+ config: {
376
+ "forwardref": y, // \1(a)
377
+ "nestedref": y, // (\1a|b)+
378
+ "ctrlcodeerr": y, // does \c error? (vs decompose)
379
+ "reftooctalalways": y, // does a single digit reference \1 become an octal? (vs remain an unmatched ref)
380
+ "substdecomposeref": y, // will a subst reference decompose? (ex. \3 becomes "\" & "3" if < 3 groups)
381
+ "looseesc": y, // should unrecognized escape sequences match the character (ex. \u could match "u") // disabled when `u` flag is set
382
+ "unicodenegated": y, // \p{^etc}"
383
+ "namedgroupalt": y, // if false, only support (?<name>foo)
384
+ },
385
+ docs: {
386
+ // for example:
387
+ //possessive: {desc: "+This will be appended to the existing entry." },
388
+ //namedgroup: {tip: "This will overwrite the existing entry." }
389
+ }
390
+ };
391
+ exports.default = core;
392
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../src/regex-validator/profiles/core.js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B,WAAW,EAAE,CAAC,EAAE,WAAW;QAC3B,aAAa,EAAE,CAAC,EAAE,gCAAgC;QAClD,kBAAkB,EAAE,CAAC,EAAE,iFAAiF;QACxG,mBAAmB,EAAE,CAAC,EAAE,6EAA6E;QACrG,UAAU,EAAE,CAAC,EAAE,qHAAqH;QACpI,gBAAgB,EAAE,CAAC,EAAE,YAAY;QACjC,eAAe,EAAE,CAAC,EAAE,sCAAsC;KAC1D;IAED,IAAI,EAAE;IACL,eAAe;IACf,uEAAuE;IACvE,+DAA+D;KAC/D;CACD,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -0,0 +1,12 @@
1
+ export default javascript;
2
+ declare namespace javascript {
3
+ namespace docs {
4
+ export namespace notunicodecat {
5
+ let ext: string;
6
+ }
7
+ export namespace unicodescript { }
8
+ import notunicodescript = "unicodecat";
9
+ export { notunicodescript };
10
+ }
11
+ }
12
+ //# sourceMappingURL=javascript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../src/regex-validator/profiles/javascript.js"],"names":[],"mappings":""}
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ /*
3
+ RegExr: Learn, Build, & Test RegEx
4
+ Copyright (C) 2017 gskinner.com, inc.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ /*
21
+ The javascript profile disables a large number of features.
22
+
23
+ Note that JS warnings are currently added in addJSWarnings in the ExpresssionLexer.
24
+ */
25
+ let y = true, n = false;
26
+ function test(expr, flag) { try {
27
+ return new RegExp(expr, flag) && undefined;
28
+ }
29
+ catch (e) {
30
+ return n;
31
+ } }
32
+ function testFlag(flag) { return test(".", flag); }
33
+ let unicodeFlag = testFlag("u");
34
+ let stickyFlag = testFlag("y");
35
+ let dotallFlag = testFlag("s");
36
+ let lookbehind = test("(?<=A)");
37
+ let namedgroup = test("(?<A>B)");
38
+ let unicodecat = test("\\p{Ll}", "u"); // disabled when `u` flag is not set
39
+ let javascript = {
40
+ id: "js",
41
+ label: "JavaScript",
42
+ browser: true,
43
+ flags: {
44
+ "s": dotallFlag, // warning
45
+ "x": n,
46
+ "u": unicodeFlag, // warning
47
+ "y": stickyFlag, // warning
48
+ "U": n
49
+ },
50
+ escCharCodes: {
51
+ "a": n, // bell
52
+ "e": n // escape
53
+ },
54
+ escCharTypes: {
55
+ "A": n, // bos
56
+ "G": n, // prevmatchend
57
+ "h": n, // hwhitespace
58
+ "H": n, // nothwhitespace
59
+ "K": n, // keepout
60
+ "N": n, // notlinebreak
61
+ "R": n, // newline
62
+ "v": n, // vwhitespace
63
+ "V": n, // notvwhitespace
64
+ "X": n, // unicodegrapheme
65
+ "Z": n, // eos
66
+ "z": n // abseos
67
+ },
68
+ unicodeScripts: unicodecat,
69
+ unicodeCategories: unicodecat,
70
+ posixCharClasses: n,
71
+ modes: n,
72
+ tokens: {
73
+ // classes:
74
+ // also in escCharSpecials and specialChars
75
+ "unicodecat": unicodecat, // \p{Ll} \P{^Ll} \pL
76
+ "notunicodecat": unicodecat, // \P{Ll} \p{^Ll} \PL
77
+ "unicodescript": unicodecat, // \p{Cherokee} \P{^Cherokee}
78
+ "notunicodescript": unicodecat, // \P{Cherokee} \p{^Cherokee}
79
+ "posixcharclass": n, // [[:alpha:]]
80
+ // esc:
81
+ // also in escCharCodes and escCharSpecials
82
+ "escunicodeub": unicodeFlag, // \u{00A9}
83
+ "escunicodexb": n, // \x{00A9}
84
+ "escsequence": n, // \Q...\E
85
+ "escoctalo": n, // \o{377}
86
+ // group:
87
+ "namedgroup": namedgroup, // (?P<name>foo) (?<name>foo) (?'name'foo)
88
+ "atomic": n, // (?>foo|bar)
89
+ "define": n, // (?(DEFINE)foo)
90
+ "branchreset": n, // (?|(a)|(b))
91
+ // lookaround:
92
+ "poslookbehind": lookbehind, // (?<=foo) // warning
93
+ "neglookbehind": lookbehind, // (?<!foo) // warning
94
+ // ref:
95
+ "namedref": n, // \k<name> \k'name' \k{name} (?P=name) \g{name}
96
+ "extnumref": n, // \g{-1} \g{+1} \g{1} \g1 \g-1
97
+ "recursion": n, // (?R) (?0) \g<0> \g'0'
98
+ "numsubroutine": n, // \g<1> \g'-1' (?1) (?-1)
99
+ "namedsubroutine": n, // \g<name> \g'name' (?&name) (?P>name)
100
+ // quantifiers:
101
+ // also in specialChars
102
+ "possessive": n,
103
+ // special:
104
+ "conditional": n, // (?(?=if)then|else)
105
+ "conditionalif": n, // (?=if) any lookaround
106
+ "conditionalelse": n, // |
107
+ "conditionalgroup": n, // (?(1)a|b) (?(-1)a|b) (?(name)a|b)
108
+ "mode": n, // (?i-x) see modes above
109
+ "comment": n // (?#comment)
110
+ },
111
+ config: {
112
+ "forwardref": n, // \1(a)
113
+ "nestedref": n, // (\1a|b)+
114
+ "ctrlcodeerr": n, // does \c error, or decompose?
115
+ "unicodenegated": n, // \p{^etc}
116
+ "namedgroupalt": n, // if false, only support (?<name>foo)
117
+ },
118
+ substTokens: {
119
+ "subst_0match": n, // $0 \0 \{0}
120
+ "subst_$bgroup": n, // ${1} ${99}
121
+ "subst_bsgroup": n // \1 \99
122
+ },
123
+ docs: {
124
+ "subst_group": { ext: "" }, // remove other syntaxes.
125
+ "namedgroup": { ext: "" }, // remove other syntaxes.
126
+ "unicodecat": {
127
+ ext: "<p>Requires the <code>u</code> flag.</p>" +
128
+ "<p>For a list of values, see this <a href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Unicode_Property_Escapes'>MDN page</a>.</p>"
129
+ },
130
+ // notunicodecat, unicodescript, notunicodescript are copied from unicodecat below.
131
+ }
132
+ };
133
+ javascript.docs.notunicodecat = javascript.docs.unicodescript = javascript.docs.notunicodescript = javascript.docs.unicodecat;
134
+ exports.default = javascript;
135
+ //# sourceMappingURL=javascript.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"javascript.js","sourceRoot":"","sources":["../../../src/regex-validator/profiles/javascript.js"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;EAgBE;;AAEF;;;;EAIE;AAEF,IAAI,CAAC,GAAC,IAAI,EAAE,CAAC,GAAC,KAAK,CAAC;AACpB,SAAS,IAAI,CAAC,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC;IAAC,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,SAAS,CAAC;AAAC,CAAC;AAAC,OAAO,CAAC,EAAE,CAAC;IAAC,OAAO,CAAC,CAAC;AAAC,CAAC,CAAC,CAAC;AACzG,SAAS,QAAQ,CAAC,IAAI,IAAI,OAAO,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;AACnD,IAAI,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;AAChC,IAAI,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC/B,IAAI,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;AAC/B,IAAI,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;AAChC,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC;AACjC,IAAI,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,oCAAoC;AAG3E,IAAI,UAAU,GAAG;IAChB,EAAE,EAAE,IAAI;IACR,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,IAAI;IAEb,KAAK,EAAE;QACN,GAAG,EAAE,UAAU,EAAE,UAAU;QAC3B,GAAG,EAA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,EAAE,0CAA0C;gBAC/C,0KAA0K;SAC1K;QACD,mFAAmF;KACnF;CACD,CAAC;AAEF,UAAU,CAAC,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,IAAI,CAAC,aAAa,GAAG,UAAU,CAAC,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC;AAE9H,kBAAe,UAAU,CAAC"}
@@ -0,0 +1,44 @@
1
+ export default pcre;
2
+ declare namespace pcre {
3
+ let id: string;
4
+ let label: string;
5
+ let browser: boolean;
6
+ namespace flags {
7
+ export { n as u };
8
+ export { n as y };
9
+ }
10
+ let badEscChars: {};
11
+ namespace escCharCodes {
12
+ export { n as v };
13
+ }
14
+ namespace tokens {
15
+ export { n as escunicodeu };
16
+ export { n as escunicodeub };
17
+ }
18
+ let substTokens: {
19
+ subst_$esc: boolean;
20
+ "subst_$&match": boolean;
21
+ subst_$before: boolean;
22
+ subst_$after: boolean;
23
+ };
24
+ namespace config {
25
+ export { n as reftooctalalways };
26
+ export { n as substdecomposeref };
27
+ export { n as looseesc };
28
+ }
29
+ namespace docs {
30
+ namespace escoctal {
31
+ let ext: string;
32
+ }
33
+ namespace numref {
34
+ let ext_1: string;
35
+ export { ext_1 as ext };
36
+ }
37
+ namespace lazy {
38
+ let ext_2: string;
39
+ export { ext_2 as ext };
40
+ }
41
+ }
42
+ }
43
+ declare let n: boolean;
44
+ //# sourceMappingURL=pcre.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pcre.d.ts","sourceRoot":"","sources":["../../../src/regex-validator/profiles/pcre.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBY,uBAAO"}