1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

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) {