Alter hashRegex to expect all handled URLs

This commit is contained in:
Luke Barnard 2018-04-25 15:06:45 +01:00
parent 0f480571e8
commit 3957222da3

View file

@ -20,7 +20,7 @@ import SdkConfig, { DEFAULTS } from './SdkConfig';
import Modal from './Modal';
import sdk from './index';
const hashRegex = /#\/(group|room|user)\/(.+)/;
const hashRegex = /#\/(groups?|room|user|settings|register|login|forgot_password|home|directory)/;
// Remove all but the first item in the hash path. Redact unexpected hashes.
function getRedactedHash(hash) {