Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip installation if the version is already installed #27

Merged
merged 8 commits into from
Feb 14, 2019
Prev Previous commit
Next Next commit
Revert "remove ansi codes from provided version string"
This reverts commit 9e5b27f.
kentac55 committed Feb 12, 2019
commit 80c5c8ba02a7319bf5694d5dc6e6527896ed0dc2
3 changes: 1 addition & 2 deletions library/Versions.re
Original file line number Diff line number Diff line change
@@ -59,8 +59,7 @@ let format = version => {
| exception _ => version
};

let ansiCharRegex = Str.regexp({|\\027\[[0-9]+m|});
Str.global_replace(ansiCharRegex, "", String.escaped(version));
version;
};

let endsWith = (~suffix, str) => {