* Checks whether this object is required version. * @param {string} str maybe required version * @returns {boolean} true, if it looks like a version
(str)
| 404 | * @returns {boolean} true, if it looks like a version |
| 405 | */ |
| 406 | function isRequiredVersion(str) { |
| 407 | return VERSION_PATTERN_REGEXP.test(str); |
| 408 | } |
| 409 | |
| 410 | module.exports.isRequiredVersion = isRequiredVersion; |
| 411 |
no test coverage detected