Make accidental global assignments local.

This commit is contained in:
Ben Newman
2015-05-18 22:04:50 -04:00
parent 05c24d3644
commit 676a9fa0fd

View File

@@ -28,8 +28,8 @@ function attemptToMatchHash(accounts, hash, success) {
_.each(accountsPaths, function (urlPart) {
var token;
tokenRegex = new RegExp("^\\#\\/" + urlPart + "\\/(.*)$");
match = hash.match(tokenRegex);
var tokenRegex = new RegExp("^\\#\\/" + urlPart + "\\/(.*)$");
var match = hash.match(tokenRegex);
if (match) {
token = match[1];