Skip to content

Commit ceb928d

Browse files
Make StringSet#words private
1 parent cadb923 commit ceb928d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/js/property.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function getStringPropertyUncached(key: string, env: CharEnv & CharEnvUnicode &
8383
const data = getPropertyData(key, null);
8484

8585
const chars = env.withCaseVaryingCharacters(data.chars);
86-
const words = StringSet.from(data.accept.words, env.charCaseFolding);
86+
const words = StringSet.from(data.accept["words"], env.charCaseFolding);
8787

8888
return UnicodeSet.from(chars, words);
8989
}

src/js/string-set.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export class StringSet {
2020
*
2121
* Words are guaranteed to be sorted by ascending length followed by ascending character value.
2222
*/
23-
readonly words: readonly ReadonlyWord[];
23+
// eslint-disable-next-line @typescript-eslint/naming-convention
24+
private readonly words: readonly ReadonlyWord[];
2425

2526
private readonly _caseFolding: CharCaseFolding;
2627

0 commit comments

Comments
 (0)