Skip to content

Commit 7209b14

Browse files
authored
docs: update range.js comments to clarify the caret ranges examples (#477)
1 parent 6010883 commit 7209b14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

classes/range.js

+3
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ const isX = id => !id || id.toLowerCase() === 'x' || id === '*'
252252
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
253253
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
254254
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
255+
// ~0.0.1 --> >=0.0.1 <0.1.0-0
255256
const replaceTildes = (comp, options) =>
256257
comp.trim().split(/\s+/).map((c) => {
257258
return replaceTilde(c, options)
@@ -291,6 +292,8 @@ const replaceTilde = (comp, options) => {
291292
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
292293
// ^1.2.3 --> >=1.2.3 <2.0.0-0
293294
// ^1.2.0 --> >=1.2.0 <2.0.0-0
295+
// ^0.0.1 --> >=0.0.1 <0.0.2-0
296+
// ^0.1.0 --> >=0.1.0 <0.2.0-0
294297
const replaceCarets = (comp, options) =>
295298
comp.trim().split(/\s+/).map((c) => {
296299
return replaceCaret(c, options)

0 commit comments

Comments
 (0)