Skip to content

Supports API of version 1.2 of etherpad-lite #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 16, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix #1: Convert numbers in long
  • Loading branch information
Gared committed Jan 2, 2013
commit 588287550c5a0be631d28939efd40afc1c0d0e47
4 changes: 2 additions & 2 deletions org/etherpad_lite_client/JSONResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ private HashMap getHashMap(String jsonString) throws JSONException {
else if (strVal.matches("\\[.+")) {
map.put(key, this.getArray(strVal));
}
// An int
// A long
else if (strVal.matches("\\d+")) {
map.put(key, Integer.parseInt(strVal));
map.put(key, Long.valueOf(strVal));
}
// A boolean
else if (strVal.matches("(true)|(false)")) {
Expand Down