Commit 0871018
committed
Stricter check for "ENVI" on first line of header file.
Previously, we only checked that the word "ENVI" appeared on the first
line of the header file. So a first line stating "This is not an ENVI
file" would be considered an ENVI header. Now, we check that "ENVI"
are the first 4 non-whitespace characters in the file.1 parent d7a17f2 commit 0871018
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| |||
0 commit comments