Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix for Issue 15 #16

Open
wants to merge 1 commit into from

1 participant

@jeffwatkins

By adding a call to advance for both boolean values, the parsing continues correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/yaml.js
View
4 lib/yaml.js
@@ -238,8 +238,10 @@ Parser.prototype.parse = function() {
case 'int':
return parseInt(this.advanceValue())
case 'true':
- return true
+ this.advance();
+ return true;
case 'false':
+ this.advance();
return false
}
}
Something went wrong with that request. Please try again.