mirror of
https://github.com/morluto/rea.git
synced 2026-10-29 10:55:57 +00:00
fix(javascript): preserve case-sensitive Unicode seed identity
Use NFC for case-sensitive feature seeds while preserving the existing explicit insensitive compatibility fold. Validation: exact/substring/absent controls, fresh public CLI/MCP workflows and complete exact-head CI passed. Hosted CLI-worker failure and unchanged rerun results remain recorded in the PR. Fixes #3314.
This commit is contained in:
1 parent
3cfa00a29c
commit
8c62a4aa36
2 files changed
+59
-1
No files matched your search
@@ -273,7 +273,7 @@ const propertyFields = (
|
||||
};
|
||||
|
||||
const normalized = (value: string, caseSensitive: boolean): string => {
|
||||
const normalizedValue = value.normalize("NFKC");
|
||||
const normalizedValue = value.normalize(caseSensitive ? "NFC" : "NFKC");
|
||||
return caseSensitive
|
||||
? normalizedValue
|
||||
: normalizedValue.toLocaleLowerCase("en-US");
|
||||
|
||||
Reference in new issue
Block a user