@@ -1920,8 +1920,8 @@ it("line: 1309 - matches ^[W-\\]46] against '-46]789'", () => {
1920
1920
it ( "line: 1310 - matches ^[W-\\]46] against 'well'" , ( ) => {
1921
1921
expectNotMatch ( "^[W-\\]46]" , [ "well" ] ) ;
1922
1922
} ) ;
1923
- it ( "line: 1311 - matches \\d\\d/\\d\\d/\\d\\d\\d\\d against '01/01/2000'" , ( ) => {
1924
- const match = exec ( "\\d\\d/\\d\\d/\\d\\d\\d\\d" , "01/01/2000" , "s" ) ;
1923
+ it ( "line: 1311 - matches \\d\\d\\ /\\d\\d\\ /\\d\\d\\d\\d against '01/01/2000'" , ( ) => {
1924
+ const match = exec ( "\\d\\d\\ /\\d\\d\\ /\\d\\d\\d\\d" , "01/01/2000" , "s" ) ;
1925
1925
expect ( match . matches [ 0 ] ) . toBe ( "01/01/2000" . substring ( 0 , 10 ) ) ;
1926
1926
} ) ;
1927
1927
xit ( "line: 1312 - non capturing groups not supported" , ( ) => { } ) ;
@@ -2274,7 +2274,79 @@ it("line: 1412 - matches against 'abc'", () => {
2274
2274
const match = exec ( "" , "abc" , "s" ) ;
2275
2275
expect ( match . matches [ 0 ] ) . toBe ( "abc" . substring ( 0 , 0 ) ) ;
2276
2276
} ) ;
2277
- xit ( "line: 1413 - requires triage" , ( ) => { } ) ;
2277
+ it ( "line: 1413 - matches <tr([\\w\\W\\s\\d][^<>]{0,})><TD([\\w\\W\\s\\d][^<>]{0,})>([\\d]{0,}\\.)(.*)((<BR>([\\w\\W\\s\\d][^<>]{0,})|[\\s]{0,}))<\\/a><\\/TD><TD([\\w\\W\\s\\d][^<>]{0,})>([\\w\\W\\s\\d][^<>]{0,})<\\/TD><TD([\\w\\W\\s\\d][^<>]{0,})>([\\w\\W\\s\\d][^<>]{0,})<\\/TD><\\/TR> against '<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>'" , ( ) => {
2278
+ const match = exec (
2279
+ "<tr([\\w\\W\\s\\d][^<>]{0,})><TD([\\w\\W\\s\\d][^<>]{0,})>([\\d]{0,}\\.)(.*)((<BR>([\\w\\W\\s\\d][^<>]{0,})|[\\s]{0,}))<\\/a><\\/TD><TD([\\w\\W\\s\\d][^<>]{0,})>([\\w\\W\\s\\d][^<>]{0,})<\\/TD><TD([\\w\\W\\s\\d][^<>]{0,})>([\\w\\W\\s\\d][^<>]{0,})<\\/TD><\\/TR>" ,
2280
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" ,
2281
+ "is"
2282
+ ) ;
2283
+ expect ( match . matches [ 0 ] ) . toBe (
2284
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2285
+ 0 ,
2286
+ 227
2287
+ )
2288
+ ) ;
2289
+ expect ( match . matches [ 1 ] ) . toBe (
2290
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2291
+ 3 ,
2292
+ 21
2293
+ )
2294
+ ) ;
2295
+ expect ( match . matches [ 2 ] ) . toBe (
2296
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2297
+ 25 ,
2298
+ 47
2299
+ )
2300
+ ) ;
2301
+ expect ( match . matches [ 3 ] ) . toBe (
2302
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2303
+ 48 ,
2304
+ 51
2305
+ )
2306
+ ) ;
2307
+ expect ( match . matches [ 4 ] ) . toBe (
2308
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2309
+ 51 ,
2310
+ 122
2311
+ )
2312
+ ) ;
2313
+ expect ( match . matches [ 5 ] ) . toBe (
2314
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2315
+ 122 ,
2316
+ 122
2317
+ )
2318
+ ) ;
2319
+ expect ( match . matches [ 6 ] ) . toBe (
2320
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2321
+ 122 ,
2322
+ 122
2323
+ )
2324
+ ) ;
2325
+ expect ( match . matches [ 8 ] ) . toBe (
2326
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2327
+ 134 ,
2328
+ 156
2329
+ )
2330
+ ) ;
2331
+ expect ( match . matches [ 9 ] ) . toBe (
2332
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2333
+ 157 ,
2334
+ 172
2335
+ )
2336
+ ) ;
2337
+ expect ( match . matches [ 10 ] ) . toBe (
2338
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2339
+ 180 ,
2340
+ 202
2341
+ )
2342
+ ) ;
2343
+ expect ( match . matches [ 11 ] ) . toBe (
2344
+ "<TR BGCOLOR='#DBE9E9'><TD align=left valign=top>43.<a href='joblist.cfm?JobID=94 6735&Keyword='>Word Processor<BR>(N-1286)</a></TD><TD align=left valign=top>Lega lstaff.com</TD><TD align=left valign=top>CA - Statewide</TD></TR>" . substring (
2345
+ 203 ,
2346
+ 217
2347
+ )
2348
+ ) ;
2349
+ } ) ;
2278
2350
it ( "line: 1414 - matches a[^a]b against 'acb'" , ( ) => {
2279
2351
const match = exec ( "a[^a]b" , "acb" , "s" ) ;
2280
2352
expect ( match . matches [ 0 ] ) . toBe ( "acb" . substring ( 0 , 3 ) ) ;
0 commit comments