chore: version check refac

This commit is contained in:
Timothy J. Baek committed 2023-12-26 13:10:50 -08:00
1 parent cc49e0d10f
commit b777b6d2aa
5 files changed
+56 -35

No files matched your search

+10
View File
@@ -100,3 +100,13 @@ export const copyToClipboard = (text) => {
}
);
};
export const checkVersion = (required, current) => {
return (
current.localeCompare(required, undefined, {
numeric: true,
sensitivity: 'case',
caseFirst: 'upper'
}) < 0
);
};