source: imaps-frontend/node_modules/clean-css/lib/optimizer/vendor-prefixes.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 492 bytes
Line 
1var VENDOR_PREFIX_PATTERN = /(?:^|\W)(-\w+-)/g;
2
3function unique(value) {
4 var prefixes = [];
5 var match;
6
7 // eslint-disable-next-line no-cond-assign
8 while ((match = VENDOR_PREFIX_PATTERN.exec(value)) !== null) {
9 if (prefixes.indexOf(match[0]) == -1) {
10 prefixes.push(match[0]);
11 }
12 }
13
14 return prefixes;
15}
16
17function same(value1, value2) {
18 return unique(value1).sort().join(',') == unique(value2).sort().join(',');
19}
20
21module.exports = {
22 unique: unique,
23 same: same
24};
Note: See TracBrowser for help on using the repository browser.