Fix autocompletion of Community IDs

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-07-23 14:47:42 +01:00
parent 4db0d94fb6
commit c8832f5582

View File

@ -186,7 +186,7 @@ abstract class PlainBasePart extends BasePart {
} }
// when not pasting or dropping text, reject characters that should start a pill candidate // when not pasting or dropping text, reject characters that should start a pill candidate
if (inputType !== "insertFromPaste" && inputType !== "insertFromDrop") { if (inputType !== "insertFromPaste" && inputType !== "insertFromDrop") {
return chr !== "@" && chr !== "#" && chr !== ":"; return chr !== "@" && chr !== "#" && chr !== ":" && chr !== "+";
} }
return true; return true;
} }
@ -463,6 +463,7 @@ export class PartCreator {
case "#": case "#":
case "@": case "@":
case ":": case ":":
case "+":
return this.pillCandidate(""); return this.pillCandidate("");
case "\n": case "\n":
return new NewlinePart(); return new NewlinePart();