@aesthetic/utils
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -79,9 +79,12 @@ import hash from 'string-hash'; | ||
var CAMEL_CASE_PATTERN = /[A-Z]/g; | ||
var VENDOR_PREFIX_PATTERN = /^(m[s\u017F]|moz|web[k\u212A]it)/i; | ||
var cache$1 = {}; | ||
function toLower(match) { | ||
return "-" + match.toLocaleLowerCase(); | ||
return "-" + match.toLowerCase(); | ||
} | ||
function isPrefixed(value) { | ||
return value.slice(0, 2) === 'ms' || value.slice(0, 3) === 'moz' || value.slice(0, 6) === 'webkit'; | ||
} | ||
function hyphenate(value) { | ||
@@ -91,3 +94,3 @@ if (!cache$1[value]) { | ||
if (VENDOR_PREFIX_PATTERN.test(result)) { | ||
if (isPrefixed(result)) { | ||
result = "-" + result; | ||
@@ -94,0 +97,0 @@ } |
@@ -87,9 +87,12 @@ 'use strict'; | ||
var CAMEL_CASE_PATTERN = /[A-Z]/g; | ||
var VENDOR_PREFIX_PATTERN = /^(m[s\u017F]|moz|web[k\u212A]it)/i; | ||
var cache$1 = {}; | ||
function toLower(match) { | ||
return "-" + match.toLocaleLowerCase(); | ||
return "-" + match.toLowerCase(); | ||
} | ||
function isPrefixed(value) { | ||
return value.slice(0, 2) === 'ms' || value.slice(0, 3) === 'moz' || value.slice(0, 6) === 'webkit'; | ||
} | ||
function hyphenate(value) { | ||
@@ -99,3 +102,3 @@ if (!cache$1[value]) { | ||
if (VENDOR_PREFIX_PATTERN.test(result)) { | ||
if (isPrefixed(result)) { | ||
result = "-" + result; | ||
@@ -102,0 +105,0 @@ } |
{ | ||
"name": "@aesthetic/utils", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Utility functions for Aesthetic.", | ||
@@ -26,3 +26,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "8297745d639624433c264a334304166344702cfc" | ||
"gitHead": "67700b2a4307e451ddb61b3f7ca631080174838f" | ||
} |
Sorry, the diff of this file is not supported yet
14967
268