UNPKG

scancss

Version:

A robust CSS stylesheet statistics collector and analyzer

14 lines (9 loc) 684 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.reExistingVendorPrefix = undefined; var _cssVendorPrefixes = require('../cssVendorPrefixes'); const prefixesWithLeadingDash = _cssVendorPrefixes.cssVendorPrefixes.filter(prefix => prefix.startsWith('-') === true).map(prefix => prefix.replace(/-/g, '')).join('|'); const prefixesWithoutLeadingDash = _cssVendorPrefixes.cssVendorPrefixes.filter(prefix => prefix.startsWith('-') === false).map(prefix => prefix.replace(/-/g, '')).join('|'); const reExistingVendorPrefix = exports.reExistingVendorPrefix = new RegExp('^(-(' + prefixesWithLeadingDash + ')-|(' + prefixesWithoutLeadingDash + ')-)');