Skip to content

Commit

Permalink
Correctly split on \n (#659)
Browse files Browse the repository at this point in the history
Closes #658
  • Loading branch information
razzeee authored Dec 29, 2023
1 parent c6253a6 commit 98f356e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/javascripts/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TerminalCommand extends HTMLElement {
connectedCallback() {
const commands = this.textContent
.trim()
.split("\n")
.split("\\n")
.map((command) => command.trim())
.filter(Boolean);

Expand Down

0 comments on commit 98f356e

Please sign in to comment.