Skip to content

Commit

Permalink
refactor(preset-icons): use utils prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 2, 2022
1 parent ba0e2ca commit 2d8f438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/preset-icons/src/index.ts
Expand Up @@ -76,7 +76,7 @@ export const preset = (options: IconsOptions = {}): Preset => {
options,
layers: { icons: -30 },
rules: [[
new RegExp(`^${prefix}([a-z0-9:-]+)(?:\\?(mask|bg|auto))?$`),
/^([a-z0-9:-]+)(?:\?(mask|bg|auto))?$/,
async ([full, body, _mode = mode]) => {
let collection = ''
let name = ''
Expand Down Expand Up @@ -132,7 +132,7 @@ export const preset = (options: IconsOptions = {}): Preset => {
}
}
},
{ layer },
{ layer, prefix },
]],
}
}
Expand Down

0 comments on commit 2d8f438

Please sign in to comment.