mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 11:49:02 +08:00
lint fix
This commit is contained in:
parent
b7c3b113dd
commit
1dbd26c828
@ -32,7 +32,11 @@ export function findSuggestionMatch(config: Trigger): SuggestionMatch {
|
||||
: new RegExp(`${prefix}(?:^)?${escapedChar}[^\\s${escapedChar}]*`, 'gm')
|
||||
|
||||
const text = $position.nodeBefore?.isText && $position.nodeBefore.text
|
||||
if (!text) return null
|
||||
|
||||
if (!text) {
|
||||
return null
|
||||
}
|
||||
|
||||
const textFrom = $position.pos - text.length
|
||||
const match = Array.from(text.matchAll(regexp)).pop()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user