Fixed problem with greedy regexp for macrocalls

It was preventing this from working:

```
<<macro>><<bacrp>><<sdf>><<qweqwe>>
```
This commit is contained in:
Jermolene
2013-11-17 21:53:12 +00:00
parent 29c0f7156b
commit 3b35d7dfe4
2 changed files with 10 additions and 1 deletions

View File

@@ -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 : [ ] } ] } ]
);
});
});
})();