From be5f6f6700cc96a6b5edf8cdebb55a59d6c8a93b Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 12 Apr 2014 17:14:09 +0100 Subject: [PATCH] Allow spaces in property names in text references --- core/modules/utils/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/utils.js b/core/modules/utils/utils.js index b98a9d224..7848c4e94 100644 --- a/core/modules/utils/utils.js +++ b/core/modules/utils/utils.js @@ -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