We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69404cb + eaca339 commit 288a98fCopy full SHA for 288a98f
1 file changed
loadjson.m
@@ -63,7 +63,7 @@
63
64
global pos inStr len esc index_esc len_esc isoct arraytoken
65
66
-if(regexp(fname,'[\{\}\]\[]','once'))
+if(regexp(fname,'^\s*(?:\[.+\])|(?:\{.+\})\s*$','once'))
67
string=fname;
68
elseif(exist(fname,'file'))
69
try
0 commit comments