]> git.r.bdr.sh - rbdr/forum/commitdiff
Ignore dashes in glyph hash
authorRuben Beltran del Rio <redacted>
Sun, 14 Mar 2021 21:46:06 +0000 (22:46 +0100)
committerRuben Beltran del Rio <redacted>
Sun, 14 Mar 2021 21:46:06 +0000 (22:46 +0100)
src/utils/glyph_hash.js

index 120c02ace705490c7ceeea0a723554ae48aa2504..cbbf9883ea65ba262cf9abbeb7726660dedbd0d8 100644 (file)
@@ -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);
 };