-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding new recognition patterns. #65
Comments
the same issue, need to recognize telegram contacts |
Any thoughts here? @willysoriaguzman did you find a solution? |
You can do that by overriding the
|
Able to linkify phone numbers but urls stop getting linkify after this change. can you tell me how can show both urls and phone numbers |
@hmittal1 Was you able to archive that? |
Maybe too late, I solved by nested Linkify component |
@iShaVas sorry i missed your comment. yes, i have modified the regex to cover aaaall valid scenarios. export const linkifyRegex = /(+?\d[\s\-\d]{6,17}\d)|((https?://(?:www.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9].[^\s]{2,}|www.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9].[^\s]{2,}|https?://(?:www.|(?!www))[a-zA-Z0-9]+.[^\s]{2,}|www.[a-zA-Z0-9]+.[^\s]{2,}|[a-zA-Z]+.com[^\s]{0,}|[a-zA-Z]+.[a-zA-Z]{2,4}/[^\s]{2,}))/g; matchDecorator={value => { |
I was reading this library uses linkify-it: (https://github.com/markdown-it/linkify-it), so I was wondering where should I add a new pattern to recognize for example phone numbers using react typescipt.
Is there any example to achieve this or similar behaviour?
The text was updated successfully, but these errors were encountered: