Skip to content

Commit ba75691

Browse files
committed
fix #30 by removing trailing whitespace in an array constrct
1 parent f8def3d commit ba75691

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

loadjson.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@
190190
astr=arraystr;
191191
astr(astr=='[')='';
192192
astr(astr==']')='';
193+
astr=regexprep(astr,'\s*$','');
193194
astr(astr==' ')='';
194195
[obj, count, errmsg, nextidx]=sscanf(astr,'%f,',inf);
195196
if(nextidx>=length(astr)-1)

0 commit comments

Comments
 (0)