Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iconfont

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iconfont - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

test/issues.css

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc