Skip to content

Commit

Permalink
fix: enhanced getIconUnicode options.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 9, 2023
1 parent e20b129 commit 7eccb09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export function createSVG(options: SvgToFontOptions = {}): Promise<Record<string
if (_startUnicode) startUnicode = _startUnicode;

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

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

1 comment on commit 7eccb09

@chenyulun
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

草率了, _startUnicode可能为空的情况也需要+1更新

Please sign in to comment.