stylelint-plugin-defensive-css 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stylelint-plugin-defensive-css",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "A Stylelint plugin to enforce defensive CSS best practices.",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -1,9 +1,11 @@
1
- const expression = /-[moz|ms|o|webkit|]+-/g;
1
+ const expression = /-\b(moz|ms|o|webkit)\b-/g;
2
2
 
3
3
  function findVendorPrefixes(selector) {
4
+ console.log(selector);
4
5
  if (!selector) return false;
5
6
 
6
7
  let prefixesFound = [...selector.trim().matchAll(expression)];
8
+ console.log(prefixesFound);
7
9
  return prefixesFound.length > 1;
8
10
  }
9
11