Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit be96033

Browse files
authored
Merge pull request #71 from jbylsma/valueless-parameter-parsing
Fix the regex parsing for valueless parameters. Fix #694
2 parents 1146db6 + c9c7cc7 commit be96033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ Parser.prototype.findElements = function(block, filename) {
448448
block = block.replace(/\n/g, '\uffff');
449449

450450
// Elements start with @
451-
var elementsRegExp = /(@(\w*)\s?(.+?)(?=\uffff[\s\*]*@|$))/gm;
451+
var elementsRegExp = /(@(\w*)\s?(.*?)(?=\uffff[\s\*]*@|$))/gm;
452452
var matches = elementsRegExp.exec(block);
453453
while (matches) {
454454
var element = {

0 commit comments

Comments
 (0)