Inline Bots: Support multiline queries (#4143)
This commit is contained in:
parent
448a758385
commit
5ca9da1872
@ -619,7 +619,7 @@
|
||||
left: 0;
|
||||
|
||||
@media (min-width: 600px) {
|
||||
left: 0.75rem;
|
||||
left: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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: '',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user