Skip to content

Commit

Permalink
v2.3.1 - bug fix: support for windows eol
Browse files Browse the repository at this point in the history
  • Loading branch information
arkhipenko committed Jan 4, 2021
1 parent 608a19e commit 3a9f0c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"type": "git",
"url": "https://github.com/arkhipenko/Dictionary.git"
},
"version": "3.2.0",
"version": "3.2.1",
"frameworks": "arduino",
"platforms": "*"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Dictionary
version=3.2.0
version=3.2.1
author=Anatoli Arkhipenko <[email protected]>
maintainer=Anatoli Arkhipenko <[email protected]>
sentence=A dictionary data type with a fast b-tree based search
Expand Down
6 changes: 5 additions & 1 deletion src/Dictionary.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@
2020-12-21 - support for comments (#) in imported JSON files
bug fix: heap corrupt when missing a comma
feature: stricter JSON formatting check
v3.2.1:
2021-01-04 - bug fix: import of files with windows-style CR/LF
*/


Expand Down Expand Up @@ -621,7 +625,7 @@ int8_t Dictionary::jload(String json, int aNum) {
isValue = false;
continue;
}
if ( c == '{' || c == '}' || c == ' ' || c == '\t' ) continue;
if ( c == '{' || c == '}' || c == ' ' || c == '\t' || c == '\r' ) continue;
return DICTIONARY_FMT;
}
}
Expand Down

0 comments on commit 3a9f0c4

Please sign in to comment.