- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/postcss-merge-rules/dist/lib/ensureCompatibility.js
r59329aa re29cc2e 4 4 value: true 5 5 }); 6 exports.filterPrefixes = filterPrefixes;7 6 exports.sameVendor = sameVendor; 8 7 exports.noVendor = noVendor; … … 13 12 14 13 var _postcssSelectorParser = _interopRequireDefault(require("postcss-selector-parser")); 15 16 var _vendors = _interopRequireDefault(require("vendors"));17 14 18 15 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } … … 26 23 const cssInOutOfRange = 'css-in-out-of-range'; 27 24 const formValidation = 'form-validation'; 28 /** @type {string[]} */ 29 30 const prefixes = _vendors.default.map(v => `-${v}-`); 25 const vendorPrefix = /-(ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)-/; 31 26 /** 32 27 * @param {string} selector … … 34 29 */ 35 30 36 37 31 function filterPrefixes(selector) { 38 return prefixes.filter(prefix => selector.indexOf(prefix) !== -1);32 return selector.match(vendorPrefix); 39 33 } // Internet Explorer use :-ms-input-placeholder. 40 34 // Microsoft Edge use ::-ms-input-placeholder. … … 57 51 58 52 function noVendor(selector) { 59 return ! filterPrefixes(selector).length;53 return !vendorPrefix.test(selector); 60 54 } 61 55
Note:
See TracChangeset
for help on using the changeset viewer.