UNPKG

scancss

Version:

A robust CSS stylesheet statistics collector and analyzer

9 lines (8 loc) 299 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.addSpacesNearParentheses = addSpacesNearParentheses; function addSpacesNearParentheses(str, before = 2, after = 2) { return str.replace(/\(/g, '(' + ' '.repeat(after)).replace(/\)/g, ' '.repeat(before) + ')'); }