Skip to content

Commit

Permalink
Merge pull request #4 from ebraminio/patch-1
Browse files Browse the repository at this point in the history
Simplify characters iteration
  • Loading branch information
papandreou authored May 3, 2021
2 parents 41acb9d + b1bc223 commit ae451d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function subsetFont(

// Add unicodes indices
const inputUnicodes = exports.hb_subset_input_unicode_set(input);
for (const c of [...text]) {
for (const c of text) {
exports.hb_set_add(inputUnicodes, c.codePointAt(0));
}

Expand Down

0 comments on commit ae451d1

Please sign in to comment.