release: WRNexusJS 0.8.0
Quality / quality (ubuntu-latest) (push) Failing after 21s
Quality / quality (windows-latest) (push) Canceled after 0s

This commit is contained in:
Clintchiz committed 2026-08-02 23:18:51 +05:30
1 parent 87507edf59
commit 586a6db8ff
625 files changed
+243608 -11210

No files matched your search

+10
View File
@@ -254,6 +254,16 @@ function validateBalancedCharacters(document, source) {
continue;
}
// Apostrophes in rendered copy (for example, "person's name") are text,
// not the beginning of a WRN/HTML quoted value.
if (
character === "'" &&
/[\p{L}\p{N}]/u.test(source[index - 1] ?? "") &&
/[\p{L}\p{N}]/u.test(source[index + 1] ?? "")
) {
continue;
}
if (character === '"' || character === "'") {
quote = character;
continue;