Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 22, 2023
1 parent d17a9c7 commit 6fc97c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/repl/multiline.js
@@ -1,7 +1,7 @@
// Can do multiline input by ending lines with a backslash
export const isMultiline = (command) => command[command.length - 1] === '\\'
export const isMultiline = (command) => command.at(-1) === '\\'

export const handleMultiline = (command) =>
command.replace(MULTILINE_REGEXP, '')
command.replaceAll(MULTILINE_REGEXP, '')

const MULTILINE_REGEXP = /\\\s*$/gmu

0 comments on commit 6fc97c4

Please sign in to comment.