Skip to content

Commit

Permalink
modified key validation code (char '_' is now valid in keys)
Browse files Browse the repository at this point in the history
  • Loading branch information
gilmaimon committed Feb 21, 2019
1 parent 20246ae commit 1707607
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/http/session/logged_in_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function isValidKey(key) {
key = key.trim();
if (key.length == 0) return false;

var validKeyRegex = /^(\*|[a-z]+(\.[a-z0-9 ]+)*)$/g;
var validKeyRegex = /^(\*|[a-z_]+(\.[a-z0-9_ ]+)*)$/g;
return key.match(validKeyRegex);
}

Expand Down

0 comments on commit 1707607

Please sign in to comment.