-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
URL does not get highlighted properly in Expensify.cash #1234
Comments
Posted to Upwork: https://www.upwork.com/jobs/~01c9f994a1995338e5 |
Additionally, would like to see that the solution also works for this URL: |
is there any restriction of using regexp only? |
What else would you use? These are the regexes we have currently |
I was about to create a similar issue for the |
@roryabraham Sorry for the late reply. I checked it. After making some adjustments to the URL Regex we can cover your case and other cases and also @Dal-Papa case.
The above URL is being converted to link successfully but Strike conversion is swapping Can we adjust the |
@parasharrajat : Should we rather fix it so that if the |
@Dal-Papa so
is converted to
which then will be replaced with
I see a possible solution that we can adopt is to check if |
@roryabraham I did some tests and I believe I can create a PR with everything that is required on the deliverable (including the additions on the comments section). |
Hey @lucas-neuhaus-dev! Please review the rules here for submitting a Pull Request. Looking forward to hearing your proposal! |
Hi @kadiealexander, sorry I forgot to comment here, I created the PR this afternoon. Here it is: Expensify/expensify-common#327. Edit: Now I realized (even having done it 4 times before) that I jumped the proposal step and went direct for the PR. |
If you haven’t already, check out our contributing guidelines for onboarding!
Platform
All platforms:
Version
1.0.1-341
Action Performed (reproducible steps):
Expected Result
The link is created properly and looks like this:
Actual Result
The URL is not properly highlighted and the link is not created properly.
Solution notes
The code that processes markdown is actually not in Expensify/Expensify.cash, but Expensify/expensify-common.
Add a unit test for this URL in ExpensiMark-test.js and then fix ExpensiMark to handle the URL properly.
A solution will not be considered complete unless it:
The text was updated successfully, but these errors were encountered: