Skip to content

Commit

Permalink
fix: unicode autoincrement (#206)
Browse files Browse the repository at this point in the history
Co-authored-by: chenyulun390 <chenyulun390@pingan.com.cn>
  • Loading branch information
chenyulun and chenyulun390 committed Jun 10, 2023
1 parent 0f08810 commit 54bc335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Expand Up @@ -46,7 +46,7 @@ export function createSVG(options: SvgToFontOptions = {}): Promise<Record<string
if (_startUnicode) startUnicode = _startUnicode;

const unicode: string[] = [_curUnicode];
if(curUnicode === _curUnicode && startUnicode === _startUnicode) startUnicode++;
if(curUnicode === _curUnicode && (!_startUnicode || startUnicode === _startUnicode)) startUnicode++;

UnicodeObj[_name] = unicode[0];
if (!!options.useNameAsUnicode) {
Expand Down

0 comments on commit 54bc335

Please sign in to comment.