Comparing version 0.2.0 to 0.2.1
14
bin.js
@@ -111,5 +111,5 @@ #!/usr/bin/env node | ||
var matches2 = selector.match(/^\.(([a-z0-9]+-)?[a-z0-9]+(?:-[a-z0-9]+)*):before$/i); | ||
var matches2 = selector.match(/^\.(([a-z0-9]+-)?[a-z0-9]+(?:[_-][a-z0-9]+)*):before$/i); | ||
if (!matches) { | ||
if (!matches2) { | ||
return; | ||
@@ -121,6 +121,2 @@ } | ||
if (name === 'icon-fold') { | ||
console.log(matches, string); | ||
} | ||
if (prefixes.indexOf(prefix) === -1) { | ||
@@ -152,5 +148,5 @@ prefixes.push(prefix); | ||
if (name.indexOf('-') !== -1) { | ||
name = name.replace(/(\-[a-z0-9])/g, function($1) { | ||
return $1.toUpperCase().replace('-', ''); | ||
if (name.indexOf('-') !== -1 || name.indexOf('_') !== -1) { | ||
name = name.replace(/[_-]([a-z0-9])([^_-]*)/gi, function(match, p1, p2) { | ||
return p1.toUpperCase() + p2.toLowerCase(); | ||
}); | ||
@@ -157,0 +153,0 @@ } |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": { | ||
@@ -11,0 +11,0 @@ "name": "Fokke Zandbergen", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
181303
14
10130