Inline Bots: Support multiline queries (#4143)

This commit is contained in:
Alexander Zinchuk 2024-01-12 13:00:05 +01:00
parent 448a758385
commit 5ca9da1872
2 changed files with 2 additions and 2 deletions

View File

@ -619,7 +619,7 @@
left: 0;
@media (min-width: 600px) {
left: 0.75rem;
left: 0.5rem;
}
}

View File

@ -13,7 +13,7 @@ import useLastCallback from '../../../../hooks/useLastCallback';
import useSyncEffect from '../../../../hooks/useSyncEffect';
const THROTTLE = 300;
const INLINE_BOT_QUERY_REGEXP = /^@([a-z0-9_]{1,32})[\u00A0\u0020]+(.*)/i;
const INLINE_BOT_QUERY_REGEXP = /^@([a-z0-9_]{1,32})[\u00A0\u0020]+(.*)/is;
const HAS_NEW_LINE = /^@([a-z0-9_]{1,32})[\u00A0\u0020]+\n{2,}/i;
const MEMO_NO_RESULT = {
username: '',