Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Parser Position compare changed from GT to GTE #106

Merged
merged 1 commit into from

3 participants

@Fjandin

Was producing an error because comparison was wrong.

@einars einars merged commit 21b7d14 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 22, 2012
  1. @Helheim
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 php/jsbeautifier.php
View
4 php/jsbeautifier.php
@@ -276,7 +276,7 @@ function get_next_token() {
$whitespace_count++;
break;
}
- if ($this->parser_pos > strlen($this->input)) {
+ if ($this->parser_pos >= strlen($this->input)) {
return array('', TK_EOF);
}
@@ -307,7 +307,7 @@ function get_next_token() {
$this->n_newlines++;
}
}
- if ($this->parser_pos > strlen($this->input)) {
+ if ($this->parser_pos >= strlen($this->input)) {
return Array('', TK_EOF);
}
Something went wrong with that request. Please try again.