allow spaces inside function definition

This commit is contained in:
Henry Jameson 2024-11-25 21:59:00 +02:00
parent fdc9d8dc72
commit 4af8a307ee

View file

@ -15,7 +15,7 @@ export const deserializeShadow = string => {
// spread (optional) // spread (optional)
'(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)?', '(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)?',
// either hex, variable or function // either hex, variable or function
'(#[0-9a-f]{6}|--[a-z0-9\\-_]+|\\$[a-z0-9\\-()_]+)', '(#[0-9a-f]{6}|--[a-z0-9\\-_]+|\\$[a-z0-9\\-()_ ]+)',
// opacity (optional) // opacity (optional)
'(?:\\s+\\/\\s+([0-9]+(?:\\.[0-9]+)?)\\s*)?', '(?:\\s+\\/\\s+([0-9]+(?:\\.[0-9]+)?)\\s*)?',
// name // name