]> git.r.bdr.sh - rbdr/forum/blobdiff - src/utils/glyph_hash.js
Ignore dashes in glyph hash
[rbdr/forum] / 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);
 };