fix bug in suggestions plugin, fix #176

This commit is contained in:
Philipp Kühn 2019-05-21 00:11:26 +02:00
parent 17c06eac80
commit 53b1d0d4df

View File

@ -10,6 +10,11 @@ function triggerCharacter({
}) {
return $position => {
// cancel if top level node
if ($position.depth <= 0) {
return false
}
// Matching expressions used for later
const escapedChar = `\\${char}`
const suffix = new RegExp(`\\s${escapedChar}$`)