mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Fix prettier niggles
This commit is contained in:
parent
e1b0b7da75
commit
2016839df5
1 changed files with 2 additions and 3 deletions
|
@ -59,18 +59,17 @@ export async function runRc(rc: string) {
|
|||
}
|
||||
|
||||
export function rcFileToExCmds(rcText: string): string[] {
|
||||
|
||||
// Split into individual excmds
|
||||
const excmds = rcText.split("\n")
|
||||
|
||||
// Remove empty and comment lines
|
||||
const ex= excmds.filter(
|
||||
const ex = excmds.filter(
|
||||
x =>
|
||||
/\S/.test(x) &&
|
||||
!x.trim().startsWith('"') &&
|
||||
!x.trim().startsWith("#"),
|
||||
)
|
||||
const res= ex.join("\n")
|
||||
const res = ex.join("\n")
|
||||
|
||||
// string-join lines that end with /
|
||||
const joined = res.replace(/\\\n/g, "")
|
||||
|
|
Loading…
Add table
Reference in a new issue