readline.line automatically escapes input
オープン
まだ誰も着手していません。
readline
- 主要言語
- JavaScript
- スター
- 122k
- フォーク
- 37.3k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 283
説明
Version
18.12.0
Platform
Microsoft Windows NT 10.0.22621.0 x64
Subsystem
readline
What steps will reproduce the bug?
Use readline and access its line variable.
rl.line
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
I see that if I input \n, then it is automatically escaped with \\n, is it possible to disable this behavior and get \n?
Additional information
I am not sure if this behavior is something wanted. If so, then I am asking if there is an alternative to get the non-escaped character. (\n)
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Node.js 18.12.0 を Windows 上で使用し、readline を使って報告を再現し、報告された入力を入力した後の rl.line を調査する。入力がリテラルなバックスラッシュシーケンスを表しているのか、それとも改行を表しているのかを明確にし、そのうえで意図された動作を判断する。完了条件は、期待される動作の確認と、readline サブシステムにおける回帰テストまたは文書化された代替手段である。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 45/100