Don’t add spaces around raw / that are preceded by numbers (#8688)
* Don’t add spaces around raw `/` that are preceded by numbers * Update changelog
This commit is contained in:
parent
c5e7857362
commit
00af2e8947
4 changed files with 112 additions and 45 deletions
|
|
@ -49,9 +49,7 @@ export function normalize(value, isRoot = true) {
|
|||
)
|
||||
})
|
||||
|
||||
// Add spaces around some operators not inside calc() that do not follow an operator
|
||||
// or '('.
|
||||
return value.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([\/])/g, '$1 $2 ')
|
||||
return value
|
||||
}
|
||||
|
||||
export function url(value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue