Skip to content

Commit a5d0170

Browse files
author
TitanSnow
committed
lint code
1 parent e18b059 commit a5d0170

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ export default {
2727
})
2828
],
2929
watch: {
30-
include: 'src/**',
30+
include: 'src/**'
3131
}
3232
}

src/components/toolbar-button/btn-header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function header (level) {
88
const line = this.editor.getCursor().line
99
const leading = this.editor.getRange({ line, ch: 0 }, { line, ch: 7 })
1010
const match = /^(#{1,6} )/.exec(leading)
11-
this.editor.replaceRange(''.padEnd(level, '#') + ' ', { line , ch: 0 }, match === null ? undefined : { line, ch: match[1].length })
11+
this.editor.replaceRange(''.padEnd(level, '#') + ' ', { line, ch: 0 }, match === null ? undefined : { line, ch: match[1].length })
1212
this.editor.focus()
1313
}
1414
}

0 commit comments

Comments
 (0)