String literal escape sequences are not decoded

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

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

2026年10月29日 から。

  • #14 @tangentstorm による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
compilers

調査の方向性

Start at imp-load.mts:122, where string values are constructed, and check the documented supported escapes. The issue says open PR #14 is linked, so coordinate before starting; done means escaped strings decode correctly and loading and showing a string preserves its value without accumulating backslashes.

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

説明

approved follow-up

From the Codex whole-repo review on #5 (review comment).

Location: imp-load.mts:122 on main (6813323)

[P2] Decode escape sequences when constructing string values

For strings containing escapes, this handler only removes the surrounding quotes and retains the escape characters literally. Thus "a\nb" contains a backslash and n rather than a newline, and an escaped quote retains its backslash. This contradicts the documented string syntax and also breaks serialization: impShow uses JSON.stringify, so loading and showing a string repeatedly adds more backslashes. Decode the supported escapes before constructing the string value so printed strings can be read back unchanged.

Checked 2026-10-29: still present on main; not touched by open PRs #3, #4 or #7.

主要言語
TypeScript
スター
6
フォーク
1
平均マージ
3分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

tangentcode/implish のほかの issue

tangentcode/implish の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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