fix(core): Increment i in defaultBlockAt

This commit is contained in:
Andrea Vaccari
2021-05-13 11:36:57 -05:00
parent 185e1c40af
commit 655957d733

View File

@@ -5,7 +5,7 @@ import { Command, RawCommands } from '../types'
import getSplittedAttributes from '../helpers/getSplittedAttributes'
function defaultBlockAt(match: ContentMatch) {
for (let i = 0; i < match.edgeCount; i + 1) {
for (let i = 0; i < match.edgeCount; i += 1) {
const { type } = match.edge(i)
if (type.isTextblock && !type.hasRequiredAttrs()) {