[BUG] should throw error when invalid range with loose is true

オープン
#387 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Kumar44developer がすでに取り組んでいます。

2026年10月22日 から。

  • #930 @Kumar44developer による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
tooling

調査の方向性

Reproduce the provided JavaScript example using the Range and validRange entry points, focusing on the input '* (4.1.x 4.1.2)' with loose mode enabled. Trace how this invalid parenthesized range is handled, and consider the behavior complete when it consistently throws an error rather than being accepted.

索引モデルが issue の本文から書いたものです。

説明

Bug

What / Why

let input = '* (4.1.x  4.1.2)'

let s = new Range(input, {
	loose: true
});

console.dir(s)
console.dir(s.set)
console.dir(s.format())

console.dir(validRange(input, {
	loose: true
}))

How

Current Behavior
  • n/a
Expected Behavior
  • throw error because not support ( xxxx )

Who

  • n/a

References

  • n/a
主要言語
JavaScript
スター
5.5k
フォーク
635
平均マージ
1時間 24分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

npm/node-semver のほかの issue

npm/node-semver の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。