Files
shields/lib/nexus-version.js
Paul Melnikow 7a664ca3e8 Run prettier (#1866)
Merging this separately so the commit with the tooling change is readable. This is a follow-on to #1167 which turned prettier on.
2018-08-08 17:57:14 -04:00

11 lines
180 B
JavaScript

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