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
Next Next commit
remove ansi codes from provided version string
  • Loading branch information
kentac55 committed Feb 11, 2019
commit 9e5b27f942e8be94c1bffda13a254f46cbf3dece
3 changes: 2 additions & 1 deletion library/Versions.re
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ let format = version => {
| exception _ => version
};

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

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