mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-23 17:50:19 +01:00
Fix document handler regex
This commit is contained in:
parent
f601d9f159
commit
7f4cae57f9
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ DocumentHandler.prototype.chooseKey = function(callback) {
|
||||||
|
|
||||||
// Return a boolean indicating whether or not something can be a key
|
// Return a boolean indicating whether or not something can be a key
|
||||||
DocumentHandler.potentialKey = function(key) {
|
DocumentHandler.potentialKey = function(key) {
|
||||||
return key.match(/^[a-zA-Z0-9]+(\.[a-zA-Z]+?)$/);
|
return key.match(/^[a-zA-Z0-9]+(\.[a-zA-Z]+)?$/);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Generate a random key
|
// Generate a random key
|
||||||
|
|
Loading…
Reference in a new issue