Skip to content

Commit d42eb9c

Browse files
authored
fix for file type detection on linux and mac (#3788)
On a mac (running Tahoe), the old expression with the escaped < always evaluated to 0. On Linux, it always evaluated to -1. This meant that the macs always thought files were MorphML and Linux never thought they were.
1 parent 30665ed commit d42eb9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

share/lib/hoc/import3d/import3d_gui.hoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ func some_format() {local i, a,b,c,d,e,f,g, n
431431
return 0
432432
}
433433
file.gets(tstr)
434-
if (hoc_sf_.head(tstr, "^\\<\\?xml", tstr1) != -1) {
434+
if (hoc_sf_.head(tstr, "^<\\?xml", tstr1) != -1) {
435435
if (nrnpython("")) {
436436
swc = new Import3d_MorphML() break
437437
}else{

0 commit comments

Comments
 (0)