Rocket.Chat.ReactNative/app/containers/MessageComposer/helpers/getMentionRegexp.ts

3 lines
130 B
TypeScript

// Match query string from the message to replace it with the suggestion
export const getMentionRegexp = (): any => /[^@:#/!]*$/;