From c64352ff6be4d9c05df37f02212e2e409435fc31 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 14 Mar 2021 22:46:06 +0100 Subject: Ignore dashes in glyph hash --- src/utils/glyph_hash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils/glyph_hash.js b/src/utils/glyph_hash.js index 120c02a..cbbf988 100644 --- a/src/utils/glyph_hash.js +++ b/src/utils/glyph_hash.js @@ -33,6 +33,6 @@ const getGlyphHashFragment = function (uuidFragment) { // Return an array of glyphs based on a UUIDv4 export const getGlyphHash = function (uuid) { - const hashFragments = uuid.match(internals.kSplitterRegex); + const hashFragments = uuid.replace(/[-]/g,'').match(internals.kSplitterRegex); return hashFragments.map(getGlyphHashFragment); }; -- cgit