This repository was archived by the owner on Jun 11, 2024. It is now read-only.
Commit 9b48d50
authored
Use regex for carriage return in windows
In windows env, the ImageMagick version string is containing \r\n at the end of each line, split and replace methods are keeping this \r leading to an issue with semver.valid() returning false because extracted imVersion is something like '6.9.3-2\r'1 parent 71ccc63 commit 9b48d50
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
0 commit comments