NASA-AMMOS / NASA-AMMOS/plandev-sequence-languages

Phoenix editor throws error if sequence contains a tab character

Open
#19 3 comments 0 reactions 1 assignee View on GitHub

@AaronPlave is already working on this.

Since Jan 2, 2026.

bug
Dominant language
TypeScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Checked for duplicates

Yes - I've already checked

Is this a regression?

No - This is a new bug

Version

3.0.1

Describe the bug

The Phoenix editor displays the following error in the log if the sequence contains a tab character (or presumably other unexpected characters). There is no error visible to the user, but the "save" button in Phoenix starts to act strange (e.g. appear disabled even when the sequence has been edited).

Reproduction

Paste the attached sequence into Phoenix and open the browser console. Note that there is a tab character between "Hello" and "World".

bad-char-seq.txt

Logs
VM6792:1 Uncaught (in promise) SyntaxError: Bad control character in string literal in JSON at position 6 (line 1 column 7)
    at JSON.parse (<anonymous>)
    at PA (modal.C1hBavF9.js:111:3386)
    at rp (modal.C1hBavF9.js:111:4136)
    at N7 (modal.C1hBavF9.js:111:8091)
    at DA (modal.C1hBavF9.js:111:2695)
    at Object.P7 [as toOutputFormat] (modal.C1hBavF9.js:111:689)
    at sequenceUpdateListener (SequenceEditor.D_sZEBSE.js:24:17634)
    at f (modal.C1hBavF9.js:9:26737)
    at C (modal.C1hBavF9.js:9:27027)
    at m (modal.C1hBavF9.js:9:26966)
System Info
Chrome
Severity

Moderate

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.