Skip to content

Commit

Permalink
update jsdoc for rangeStart function
Browse files Browse the repository at this point in the history
  • Loading branch information
pr7prashant committed Aug 9, 2023
1 parent 505406f commit b4ce0fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function slice(v, releaseType) {
*
* @param {string} v - A version string that follows the Semantic Versioning specification. The function will accept and coerce invalid versions into valid ones.
* @returns {string} The start of the range that matches the given version string, or null if no match is found.
* @throws {TypeError} If v is not a string or is an empty string.
* @throws {TypeError} If v is an invalid semver range
* @example
* rangeStart('^1.2.3') // returns '1.2.3'
* rangeStart('>=2.0.0') // returns '2.0.0'
Expand Down

0 comments on commit b4ce0fc

Please sign in to comment.