mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 01:44:36 +00:00
Fixed problem with greedy regexp for macrocalls
It was preventing this from working: ``` <<macro>><<bacrp>><<sdf>><<qweqwe>> ```
This commit is contained in:
@@ -104,6 +104,15 @@ describe("WikiText parser tests", function() {
|
||||
|
||||
});
|
||||
|
||||
it("should parse macro calls", function() {
|
||||
expect(parse("<<john>><<paul>><<george>><<ringo>>")).toEqual(
|
||||
|
||||
[ { type : 'element', tag : 'p', children : [ { type : 'macrocall', name : 'john', params : [ ] }, { type : 'macrocall', name : 'paul', params : [ ] }, { type : 'macrocall', name : 'george', params : [ ] }, { type : 'macrocall', name : 'ringo', params : [ ] } ] } ]
|
||||
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user