Skip to content

Commit

Permalink
Fix Logging Selectors Error (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuschick authored Dec 29, 2023
1 parent 7af73b7 commit c492036
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stylelint-plugin-defensive-css",
"version": "0.10.3",
"version": "0.10.4",
"description": "A Stylelint plugin to enforce defensive CSS best practices.",
"main": "src/index.js",
"files": [
Expand Down
2 changes: 0 additions & 2 deletions src/utils/findVendorPrefixes.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
const expression = /-\b(moz|ms|o|webkit)\b-/g;

function findVendorPrefixes(selector) {
console.log(selector);
if (!selector) return false;

let prefixesFound = [...selector.trim().matchAll(expression)];
console.log(prefixesFound);
return prefixesFound.length > 1;
}

Expand Down

0 comments on commit c492036

Please sign in to comment.