aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-03-14 22:46:06 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-03-14 22:46:06 +0100
commitc64352ff6be4d9c05df37f02212e2e409435fc31 (patch)
treec71d9c86ffbc5fe199c62e02a805490fbd3e8ed8 /src
parent6347b8d9ab40c5807226eaece1945266292d0893 (diff)
Ignore dashes in glyph hash
Diffstat (limited to 'src')
-rw-r--r--src/utils/glyph_hash.js2
1 files changed, 1 insertions, 1 deletions
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);
};