Files
shields/lib/nexus-version.js
Paul Melnikow c62534b5fd Move remaining helper functions to lib/ (#1109)
- Clear the regular update cache between unit tests
2017-10-01 22:08:30 -04:00

15 lines
225 B
JavaScript

'use strict';
function isSnapshotVersion(version) {
const pattern = /(\d+\.)*\d\-SNAPSHOT/;
if (version) {
return version.match(pattern);
} else {
return false;
}
}
module.exports = {
isSnapshotVersion
};