Allow forcing of highlight type
This commit is contained in:
parent
56bf98daac
commit
ec0d419c61
3 changed files with 22 additions and 7 deletions
|
@ -80,7 +80,7 @@ DocumentHandler.prototype.chooseKey = function(callback) {
|
|||
|
||||
// Return a boolean indicating whether or not something can be a key
|
||||
DocumentHandler.potentialKey = function(key) {
|
||||
return key.match(/^[a-zA-Z0-9]+$/);
|
||||
return key.match(/^[a-zA-Z0-9]+(\.[a-zA-Z]+?)$/);
|
||||
};
|
||||
|
||||
// Generate a random key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue