Skip to content

Commit

Permalink
fix lexer to handle slashes in attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Feb 15, 2017
1 parent f5ec950 commit 443f0e6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,8 @@

while (end < len) {
var char = input.charAt(end);
if (char === ">" || char === "/") {
var nextChar = input.charAt(end + 1);
if (char === ">" || char === "/" && nextChar === ">") {
break;
}
rawAttrs += char;
Expand Down
Loading

0 comments on commit 443f0e6

Please sign in to comment.