File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change 66 s {mustBeTextScalar }
77end
88
9- try
10- y = startsWith(s , alphanumericsPattern + " ://" );
11- catch e
12- % Matlab < R2020b
13- if ~strcmp(e .identifier , " MATLAB:UndefinedFunction" ) && ...
14- ~strcmp(e .identifier , " Octave:undefined-function" )
15- rethrow(e )
16- end
17-
18- % https://www.mathworks.com/help/matlab/import_export/work-with-remote-data.html
19-
20- y = startsWith(s , " http://" ) || startsWith(s , " https://" ) || ...
21- startsWith(s , " ftp://" ) || startsWith(s , " file://" ) || ...
22- startsWith(s , " s3://" ) || startsWith(s , " hdfs://" ) || ...
23- startsWith(s , " wasbs://" );
24- end
9+ y = startsWith(s , alphanumericsPattern + " ://" );
2510
2611end
2712
28- % !assert (is_url("http://example.com"), true)
29- % !assert (is_url("//server"), false)
13+ % !testif 0
You can’t perform that action at this time.
0 commit comments