16 lines
1.2 KiB
Text
16 lines
1.2 KiB
Text
=== tests/cases/compiler/regExpWithSlashInCharClass.ts ===
|
|
var foo1 = "a/".replace(/.[/]/, "");
|
|
>foo1 : Symbol(foo1, Decl(regExpWithSlashInCharClass.ts, 0, 3))
|
|
>"a/".replace : Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63))
|
|
>replace : Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63))
|
|
|
|
var foo2 = "a//".replace(/.[//]/g, "");
|
|
>foo2 : Symbol(foo2, Decl(regExpWithSlashInCharClass.ts, 1, 3))
|
|
>"a//".replace : Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63))
|
|
>replace : Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63))
|
|
|
|
var foo3 = "a/".replace(/.[/no sleep /till/]/, "bugfix");
|
|
>foo3 : Symbol(foo3, Decl(regExpWithSlashInCharClass.ts, 2, 3))
|
|
>"a/".replace : Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63))
|
|
>replace : Symbol(String.replace, Decl(lib.d.ts, 329, 44), Decl(lib.d.ts, 336, 63), Decl(lib.d.ts, 343, 102), Decl(lib.d.ts, 350, 63))
|
|
|