Skip to content

Commit

Permalink
fix(preset-icons): support icon name contains _ (#2482)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
mokeyish and antfu committed Apr 10, 2023
1 parent d1259e5 commit 21b7d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-icons/src/core.ts
Expand Up @@ -57,7 +57,7 @@ export function createPresetIcons(lookupIconLoader: (options: IconsOptions) => P
options,
layers: { icons: -30 },
rules: [[
/^([a-z0-9:-]+)(?:\?(mask|bg|auto))?$/,
/^([a-z0-9:_-]+)(?:\?(mask|bg|auto))?$/,
async ([full, body, _mode = mode]) => {
let collection = ''
let name = ''
Expand Down

0 comments on commit 21b7d50

Please sign in to comment.