MCPcopy
hub / github.com/webpack/webpack / isRequiredVersion

Function isRequiredVersion

lib/sharing/utils.js:406–408  ·  view source on GitHub ↗

* Checks whether this object is required version. * @param {string} str maybe required version * @returns {boolean} true, if it looks like a version

(str)

Source from the content-addressed store, hash-verified

404 * @returns {boolean} true, if it looks like a version
405 */
406function isRequiredVersion(str) {
407 return VERSION_PATTERN_REGEXP.test(str);
408}
409
410module.exports.isRequiredVersion = isRequiredVersion;
411

Callers 3

applyMethod · 0.85
constructorMethod · 0.85
normalizeVersionFunction · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected