[Glitch] Implement tag auto-completion by history
Port 460e380d38
to glitch-soc
This commit is contained in:
@@ -58,7 +58,7 @@ const handlers = {
|
||||
const right = value.slice(selectionStart).search(/[\s\u200B]/);
|
||||
const token = function () {
|
||||
switch (true) {
|
||||
case left < 0 || !/[@:]/.test(value[left]):
|
||||
case left < 0 || !/[@:#]/.test(value[left]):
|
||||
return null;
|
||||
case right < 0:
|
||||
return value.slice(left);
|
||||
|
Reference in New Issue
Block a user