Skip to content

Commit 288a98f

Browse files
committed
Merge pull request #14 from bratukham/patch-1
thanks for the patch, now in the upstream.
2 parents 69404cb + eaca339 commit 288a98f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loadjson.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
global pos inStr len esc index_esc len_esc isoct arraytoken
6565

66-
if(regexp(fname,'[\{\}\]\[]','once'))
66+
if(regexp(fname,'^\s*(?:\[.+\])|(?:\{.+\})\s*$','once'))
6767
string=fname;
6868
elseif(exist(fname,'file'))
6969
try

0 commit comments

Comments
 (0)