diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-08-28 13:52:18 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-08-28 19:52:28 +0200 |
commit | 24b6811a6ed5c3449b6fd82dc30e5b988b76df99 (patch) | |
tree | 179f94e6176d413bc25c976ebe0b5bc4d187cb25 /app/javascript/flavours/glitch/features/composer/textarea/index.js | |
parent | e3246cd13b6ee034f5c8e969828332dc9312d449 (diff) |
[Glitch] Implement tag auto-completion by history
Port 460e380d386367b6809d319859e13d17a6a2acea to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features/composer/textarea/index.js')
-rw-r--r-- | app/javascript/flavours/glitch/features/composer/textarea/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/composer/textarea/index.js b/app/javascript/flavours/glitch/features/composer/textarea/index.js index 51d44a83b..50e46fc78 100644 --- a/app/javascript/flavours/glitch/features/composer/textarea/index.js +++ b/app/javascript/flavours/glitch/features/composer/textarea/index.js @@ -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); |