@tamagui/simple-hash
Advanced tools
Comparing version 1.7.7 to 1.7.8
@@ -31,2 +31,5 @@ "use strict"; | ||
const char = str.charCodeAt(i); | ||
if (char === 46) { | ||
valids += "d0t"; | ||
} | ||
if (isValidCSSCharCode(char) && len <= hashMin) { | ||
@@ -33,0 +36,0 @@ valids += str[i]; |
@@ -7,2 +7,5 @@ const simpleHash = (str, hashMin = 10) => { | ||
const char = str.charCodeAt(i); | ||
if (char === 46) { | ||
valids += "d0t"; | ||
} | ||
if (isValidCSSCharCode(char) && len <= hashMin) { | ||
@@ -9,0 +12,0 @@ valids += str[i]; |
{ | ||
"name": "@tamagui/simple-hash", | ||
"version": "1.7.7", | ||
"version": "1.7.8", | ||
"sideEffects": false, | ||
@@ -28,3 +28,3 @@ "types": "./types/index.d.ts", | ||
"devDependencies": { | ||
"@tamagui/build": "1.7.7" | ||
"@tamagui/build": "1.7.8" | ||
}, | ||
@@ -31,0 +31,0 @@ "publishConfig": { |
@@ -7,2 +7,6 @@ export const simpleHash = (str: string, hashMin = 10) => { | ||
const char = str.charCodeAt(i) | ||
// . => d0t | ||
if (char === 46) { | ||
valids += 'd0t' | ||
} | ||
// dont do more than 10 non-hashed to avoid getting too girthy | ||
@@ -9,0 +13,0 @@ if (isValidCSSCharCode(char) && len <= hashMin) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9975
160