initial commit

This commit is contained in:
i2p
2026-08-27 21:09:14 +00:00
commit a5b6d59437
12681 changed files with 3253832 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { expect, it } from "bun:test";
it("regex literal with non-latin1 should work", () => {
const text = "这是一段要替换的文字";
//Correct results: 这是一段的文字
expect(text.replace(new RegExp("要替换"), "")).toBe("这是一段的文字");
//Incorrect result: 这是一段要替换的文字
expect(text.replace(/要替换/, "")).toBe("这是一段的文字");
});