fix: fix an issue with topic parsing?

This commit is contained in:
Andy Burke 2025-10-08 19:33:33 -07:00
parent 83689f2ebd
commit 4c1fa98418

View file

@ -81,7 +81,7 @@
} }
}; };
const HASH_EXTRACTOR = /^\#\/topic\/(?<topic_id>[A-Za-z\-]+)\/?(?<view>\w+)/gm; const HASH_EXTRACTOR = /^\#\/topic\/(?<topic_id>[A-Za-z\-]+)\/?(?<view>\w+)?/gm;
function extract_url_hash_info() { function extract_url_hash_info() {
HASH_EXTRACTOR.lastIndex = 0; // ugh, need this to have this work on multiple exec calls HASH_EXTRACTOR.lastIndex = 0; // ugh, need this to have this work on multiple exec calls