Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/postcss-merge-rules/dist/lib/ensureCompatibility.js

    r59329aa re29cc2e  
    44  value: true
    55});
    6 exports.filterPrefixes = filterPrefixes;
    76exports.sameVendor = sameVendor;
    87exports.noVendor = noVendor;
     
    1312
    1413var _postcssSelectorParser = _interopRequireDefault(require("postcss-selector-parser"));
    15 
    16 var _vendors = _interopRequireDefault(require("vendors"));
    1714
    1815function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
     
    2623const cssInOutOfRange = 'css-in-out-of-range';
    2724const formValidation = 'form-validation';
    28 /** @type {string[]} */
    29 
    30 const prefixes = _vendors.default.map(v => `-${v}-`);
     25const vendorPrefix = /-(ah|apple|atsc|epub|hp|khtml|moz|ms|o|rim|ro|tc|wap|webkit|xv)-/;
    3126/**
    3227 * @param {string} selector
     
    3429 */
    3530
    36 
    3731function filterPrefixes(selector) {
    38   return prefixes.filter(prefix => selector.indexOf(prefix) !== -1);
     32  return selector.match(vendorPrefix);
    3933} // Internet Explorer use :-ms-input-placeholder.
    4034// Microsoft Edge use ::-ms-input-placeholder.
     
    5751
    5852function noVendor(selector) {
    59   return !filterPrefixes(selector).length;
     53  return !vendorPrefix.test(selector);
    6054}
    6155
Note: See TracChangeset for help on using the changeset viewer.