mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-29 03:20:27 +00:00
Mustn't allow commas in parameter names
This commit is contained in:
parent
689a6c5b6a
commit
fbd0357cae
@ -40,7 +40,7 @@ exports.parse = function() {
|
||||
var paramString = this.match[3],
|
||||
params = [];
|
||||
if(this.match[2]) {
|
||||
var reParam = /\s*([^:)\s]+)(?:\s*:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|([^"'\s]+)))?/mg,
|
||||
var reParam = /\s*([^:),\s]+)(?:\s*:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|([^"'\s]+)))?/mg,
|
||||
paramMatch = reParam.exec(paramString);
|
||||
while(paramMatch) {
|
||||
// Save the parameter details
|
||||
|
@ -39,7 +39,7 @@ exports.parse = function() {
|
||||
var paramString = this.match[1],
|
||||
attributes = Object.create(null),
|
||||
orderedAttributes = [],
|
||||
reParam = /\s*([^:)\s]+)(?:\s*:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|([^"'\s]+)))?/mg,
|
||||
reParam = /\s*([^:),\s]+)(?:\s*:\s*(?:"""([\s\S]*?)"""|"([^"]*)"|'([^']*)'|([^"'\s]+)))?/mg,
|
||||
paramMatch = reParam.exec(paramString);
|
||||
while(paramMatch) {
|
||||
// Save the parameter details
|
||||
|
Loading…
Reference in New Issue
Block a user