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