mirror of
https://github.com/iconify/iconify.git
synced 2024-11-09 14:50:56 +00:00
Merge pull request #269 from chenglu4343/fix-sizeMatchError
fix(utils): not match correctly when setting with a decimal
This commit is contained in:
commit
1ed4fab53f
@ -2,8 +2,8 @@ import type { Awaitable } from '@antfu/utils';
|
||||
import { isUnsetKeyword } from '../svg/build';
|
||||
import type { IconifyLoaderOptions } from './types';
|
||||
|
||||
const svgWidthRegex = /\swidth\s*=\s*["'](\w+)["']/;
|
||||
const svgHeightRegex = /\sheight\s*=\s*["'](\w+)["']/;
|
||||
const svgWidthRegex = /\swidth\s*=\s*["']([\w.]+)["']/;
|
||||
const svgHeightRegex = /\sheight\s*=\s*["']([\w.]+)["']/;
|
||||
const svgTagRegex = /<svg\s+/;
|
||||
|
||||
function configureSvgSize(
|
||||
|
Loading…
Reference in New Issue
Block a user