refactoring

This commit is contained in:
Philipp Kühn
2020-04-12 23:47:24 +02:00
parent 56beb707ab
commit f29b39238b

View File

@@ -39,8 +39,7 @@ export default class Code extends Mark {
}
inputRules() {
return [
markInputRule(
return markInputRule(
VerEx()
.add('(?:^|\\s)')
.beginCapture()
@@ -53,12 +52,10 @@ export default class Code extends Mark {
.endOfLine(),
this.type,
)
]
}
pasteRules() {
return [
markPasteRule(
return markPasteRule(
VerEx()
.add('(?:^|\\s)')
.beginCapture()
@@ -70,7 +67,6 @@ export default class Code extends Mark {
.endCapture(),
this.type,
)
]
}
}