From 90e4264a3871fd1e5249f54233124c91cc988e9c Mon Sep 17 00:00:00 2001 From: Hyeseong Kim Date: Sun, 3 Nov 2024 05:25:31 +0900 Subject: [PATCH] chore --- scripts/unicode.js | 2 +- src/_incb_table.js | 2 +- src/grapheme.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/unicode.js b/scripts/unicode.js index 2297b69..15faea4 100755 --- a/scripts/unicode.js +++ b/scripts/unicode.js @@ -636,7 +636,7 @@ import { initUnicodeRangeBuffer } from './core.js'; /** * The Unicode \`Indic_Conjunct_Break=Consonant\` derived property table */ -export const consonant_table = initUnicodeRangeBuffer( +export const consonant_buffer = initUnicodeRangeBuffer( new Uint16Array(${table.length * 2}), /** @type {UnicodeRangeEncoding} */ ('${table.map(x => `${x[0] ? x[0].toString(36) : ''},${x[1] ? x[1].toString(36) : ''}`).join(',')}') diff --git a/src/_incb_table.js b/src/_incb_table.js index e246ef4..d5e4cc1 100644 --- a/src/_incb_table.js +++ b/src/_incb_table.js @@ -12,7 +12,7 @@ import { initUnicodeRangeBuffer } from './core.js'; /** * The Unicode `Indic_Conjunct_Break=Consonant` derived property table */ -export const consonant_table = initUnicodeRangeBuffer( +export const consonant_buffer = initUnicodeRangeBuffer( new Uint16Array(52), /** @type {UnicodeRangeEncoding} */ ('1sl,10,1ug,7,1vc,7,1w5,j,1wq,6,1wy,,1x2,3,1y4,1,1y7,,1yo,1,239,j,23u,6,242,1,245,4,261,,26t,j,27e,6,27m,1,27p,4,28s,1,28v,,29d,,2dx,j,2ei,f,2fs,2,2l1,11') diff --git a/src/grapheme.js b/src/grapheme.js index d495e71..a3bafc5 100644 --- a/src/grapheme.js +++ b/src/grapheme.js @@ -22,7 +22,7 @@ import { grapheme_cats, } from './_grapheme_table.js'; import { - consonant_table, + consonant_buffer, } from './_incb_table.js'; /** @@ -242,7 +242,7 @@ function cat(cp, cache) { * @return {boolean} */ function isIndicConjunctCosonant(cp) { - return searchUnicodeRange(cp, consonant_table) >= 0; + return searchUnicodeRange(cp, consonant_buffer) >= 0; } /**