Commit bdb15af
committed
Also override libmagic for WDL files starting with import (PHP-130724)
WDL files without a version header that start with an import statement
are also misidentified as application/javascript by libmagic. Add a
catch-all rule for files starting with 'import "'. Reclassifying
JavaScript ES modules as text/plain is harmless.1 parent 6f174c9 commit bdb15af
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
103 | 109 | | |
104 | 110 | | |
105 | 111 | | |
| |||
0 commit comments