mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-01 16:13:00 +00:00
Allow spaces in property names in text references
This commit is contained in:
@@ -379,7 +379,7 @@ Returns an object with the following fields, all optional:
|
|||||||
*/
|
*/
|
||||||
exports.parseTextReference = function(textRef) {
|
exports.parseTextReference = function(textRef) {
|
||||||
// Separate out the title, field name and/or JSON indices
|
// 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);
|
match = reTextRef.exec(textRef);
|
||||||
if(match && reTextRef.lastIndex === textRef.length) {
|
if(match && reTextRef.lastIndex === textRef.length) {
|
||||||
// Return the parts
|
// Return the parts
|
||||||
|
|||||||
Reference in New Issue
Block a user