-
Notifications
You must be signed in to change notification settings - Fork 86
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
Suggestion: Add URL formatting #13
Comments
@dabakovich just wondering if you will be looking at this anytime soon please? Thanks! |
Added `partTypes` property for defining list of possible mention types or patterns for parsing. Updated README.md. Added tests for new method for parsing value. BREAKING CHANGES: `mentionTypes` renamed to `partTypes`. `MentionType` changed to `PartType` which can be either `MentionPartType` or `PatternPartType`. New types defined in README.md.
Hey @snamstorm! The feature is available now on alpha 2.0.0-0. Please test it and tell me if you'll get any issues. |
@dabakovich thanks - tested and this works well. Can we merge to master branch and make a new release please? |
Sure, v2.0.0 is now available for download. Please close the issue if you don't have any other questions. |
@snamstorm why is it that using your short regex Screen.Recording.2024-03-13.at.12.35.08.PM.mov |
We're using
react-native-parsed-text
library to show the hashtags and URL formatting. We only highlight the URL by changing its style(no hiding the link).The regEx used for URL:
/\bhttps?:\/\/\S+/gi
/(https?:\/\/|www\.)[-a-zA-Z0-9@:%._\+~#=]{1,256}\.(xn--)?[a-z0-9-]{2,20}\b([-a-zA-Z0-9@:%_\+\[\],.~#?&\/=]*[-a-zA-Z0-9@:%_\+\]~#?&\/=])*/i
Below is the screenshot of the TextInput which I'm using:
The text was updated successfully, but these errors were encountered: