1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

LibJS: Parse the RegExp.prototype.hasIndices flag

This commit is contained in:
Timothy Flynn 2021-07-09 16:10:17 -04:00 committed by Linus Groh
parent e801cc7afd
commit d1e06b00e3
6 changed files with 12 additions and 3 deletions

View file

@ -1,5 +1,6 @@
test("basic functionality", () => {
expect(/foo/.flags).toBe("");
expect(/foo/d.flags).toBe("d");
expect(/foo/g.flags).toBe("g");
expect(/foo/i.flags).toBe("i");
expect(/foo/m.flags).toBe("m");
@ -7,5 +8,5 @@ test("basic functionality", () => {
expect(/foo/u.flags).toBe("u");
expect(/foo/y.flags).toBe("y");
// prettier-ignore
expect(/foo/sgimyu.flags).toBe("gimsuy");
expect(/foo/dsgimyu.flags).toBe("dgimsuy");
});