Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Nov 2, 2024
1 parent 873081f commit 90e4264
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scripts/unicode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(',')}')
Expand Down
2 changes: 1 addition & 1 deletion src/_incb_table.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/grapheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
grapheme_cats,
} from './_grapheme_table.js';
import {
consonant_table,
consonant_buffer,
} from './_incb_table.js';

/**
Expand Down Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 90e4264

Please sign in to comment.