v3: localization fixes, char counters & limits on all text fields, ux fixes
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { type RefObject, useCallback, useRef, useState } from "react";
|
||||
|
||||
// Trigger: ':' not preceded by a word character, followed by 1+ word chars
|
||||
const TRIGGER_RE = /(?<![A-Za-z0-9_]):([A-Za-z0-9_+-]{1,})$/;
|
||||
// Trigger: ':' not preceded by a word character, followed by a letter then
|
||||
// optional word chars / '+' / '-'. Requiring a letter first prevents ASCII
|
||||
// emoticons like ':-' or ':(' from opening the picker.
|
||||
const TRIGGER_RE = /(?<![A-Za-z0-9_]):([A-Za-z][A-Za-z0-9_+-]*)$/;
|
||||
|
||||
interface EmojiTriggerState {
|
||||
open: boolean;
|
||||
|
||||
Reference in New Issue
Block a user