This repository was archived by the owner on Jun 11, 2024. It is now read-only.
Commit ee6cf46
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"`.
Closes gh-121 parent 69d5123 commit ee6cf46
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| |||
0 commit comments