Allow spaces in property names in text references

print-window-tiddler
Jermolene 2014-04-12 17:14:09 +01:00
rodzic be7822281a
commit be5f6f6700
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -379,7 +379,7 @@ Returns an object with the following fields, all optional:
*/
exports.parseTextReference = function(textRef) {
// Separate out the title, field name and/or JSON indices
var reTextRef = /^\s*([^!#]+)?(?:(?:!!([^\s]+))|(?:##([^\s]+)))?\s*/mg,
var reTextRef = /^\s*([^!#]+)?(?:(?:!!([^\s]+))|(?:##(.+)))?\s*/mg,
match = reTextRef.exec(textRef);
if(match && reTextRef.lastIndex === textRef.length) {
// Return the parts