Comparing version 0.0.1 to 0.0.2
@@ -7,6 +7,7 @@ 'use strict'; | ||
var cache = {}; | ||
var esc = /[|\\{}()[\]^$+*?.]/g; | ||
var getClassReg = function getClassReg(name) { | ||
if (!cache[name]) { | ||
var sReg = '(?:^|\\s+)' + name + '(?:\\s+|$)'; | ||
var sReg = '(?:^|\\s+)' + name.replace(esc, '\\$&') + '(?:\\s+|$)'; | ||
cache[name] = new RegExp(sReg); | ||
@@ -13,0 +14,0 @@ } |
{ | ||
"name": "class-lib", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "ClassName Library", | ||
@@ -5,0 +5,0 @@ "repository": "react-atomic/react-atomic-organism", |
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
5306
109