Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 018b19a commit e078ec9Copy full SHA for e078ec9
lib/index.js
@@ -2,7 +2,8 @@
2
3
import semver from 'semver';
4
5
-const atomVersion = atom.appVersion;
+const {major, minor, patch} = semver.parse(atom.appVersion);
6
+const atomVersion = `${major}.${minor}.${patch}`;
7
const requiredVersion = '>=1.13.0';
8
9
if (atom.inDevMode() || atom.inSpecMode() || semver.satisfies(atomVersion, requiredVersion)) {
0 commit comments