Address comments from #1109 and make several code-quality fixes which were caught by a local run of eslint-config-standard.
11 lines
183 B
JavaScript
11 lines
183 B
JavaScript
'use strict';
|
|
|
|
function isSnapshotVersion(version) {
|
|
const pattern = /(\d+\.)*\d-SNAPSHOT/;
|
|
return version && version.match(pattern);
|
|
}
|
|
|
|
module.exports = {
|
|
isSnapshotVersion
|
|
};
|