Skip to content

Commit 0c9dbd0

Browse files
Jim Zhangisaacs
authored andcommitted
added options support for coerce function
Close #265
1 parent 1aaf078 commit 0c9dbd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

semver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ function intersects (r1, r2, options) {
15191519
}
15201520

15211521
exports.coerce = coerce
1522-
function coerce (version) {
1522+
function coerce (version, options) {
15231523
if (version instanceof SemVer) {
15241524
return version
15251525
}
@@ -1536,5 +1536,5 @@ function coerce (version) {
15361536

15371537
return parse(match[1] +
15381538
'.' + (match[2] || '0') +
1539-
'.' + (match[3] || '0'))
1539+
'.' + (match[3] || '0'), options)
15401540
}

0 commit comments

Comments
 (0)