diff --git a/src/parser.js b/src/parser.js index b686580..5b83062 100644 --- a/src/parser.js +++ b/src/parser.js @@ -457,7 +457,7 @@ PEG.parser = (function(){ } if (result0 !== null) { result0 = (function(elements, code) { - var expression = elements.length != 1 + var expression = elements.length !== 1 ? { type: "sequence", elements: elements @@ -483,7 +483,7 @@ PEG.parser = (function(){ } if (result0 !== null) { result0 = (function(elements) { - return elements.length != 1 + return elements.length !== 1 ? { type: "sequence", elements: elements diff --git a/src/parser.pegjs b/src/parser.pegjs index 6e93665..1fb607e 100644 --- a/src/parser.pegjs +++ b/src/parser.pegjs @@ -50,7 +50,7 @@ choice sequence = elements:labeled* code:action { - var expression = elements.length != 1 + var expression = elements.length !== 1 ? { type: "sequence", elements: elements @@ -63,7 +63,7 @@ sequence }; } / elements:labeled* { - return elements.length != 1 + return elements.length !== 1 ? { type: "sequence", elements: elements