fix lint error

This commit is contained in:
Philipp Kühn 2018-11-09 23:01:33 +01:00
parent 35880251cd
commit 0eba7b48b5

View File

@ -48,10 +48,10 @@ export default class Heading extends Node {
inputRules({ type }) {
return this.options.levels.map(level => textblockTypeInputRule(
new RegExp(`^(#{1,${level}})\\s$`),
type,
match => ({ level }),
))
new RegExp(`^(#{1,${level}})\\s$`),
type,
() => ({ level }),
))
}
}