-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Hyperlink markdown doesn't work if the ] is preceded by an ( #4229
Hyperlink markdown doesn't work if the ] is preceded by an ( #4229
Comments
Triggered auto assignment to @AndrewGable ( |
Triggered auto assignment to @NicMendonca ( |
Posted job: https://www.upwork.com/jobs/~01eb625fbec00ecdbf |
Proposal: This can be fixed by updating the regex in ExpensiMark.js of expensify-common. Can handle other characters too by updating the regex.
|
ProposalChanges should be done against expensify-common. In the following lines. We missed handling for () also additionally we missed for Need replace regex prefix with string to for for other characters also. |
As mentioned in the issue it is happening for other punctuations as well, we can update the regex for link rule, this will handle {}*() along with existing supported punctuations Here is the proposal Proposal
|
I would suggest please run the test suite on e-common and mention that in your proposal if that is a pass. |
I agree @parasharrajat. @mananjadhav since you were the first to comment, can you verify that the tests pass with your proposed regex? If so, we will hire you for the solution. Thank you! |
@AndrewGable @parasharrajat Sure. I'll add a test in a while and update here with the result. |
@AndrewGable @parasharrajat I've raised a PR with the test cases and the regex change. Changed the approach to ensure none of the existing test cases break and also support multiple other special characters. |
Looks great on first pass, I will review it further shortly. @NicMendonca - Can you please hire @mananjadhav via Upwork? Thanks! |
@mananjadhav hired! |
@mananjadhav Please open an App PR with the updated hash. Thanks! |
@AndrewGable Raised PR. Would you be needing screenshots for this PR? Tests in expensify-common cover the testing. Let me know. |
Yes please, screenshots are required for all PRs 👍 |
@AndrewGable Screencasts added for all platforms. Let me know if anything else is required to merge this. |
@NicMendonca Any updates on Upwork for this? |
@mananjadhav yup! As per this information here, contracts are paid 7 days after the pull request is merged to allow for regression testing. Payment is scheduled to be issued in 2 days. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
[Yo (click here to see a cool cat)](https://c8.alamy.com/compes/ha11pc/cookie-cat-con-sombrero-de-cowboy-y-sun-glass-ha11pc.jpg)
Expected Result:
The link should be hyperlinked even if there is a ) before the ].
Actual Result:
Link is not hyperlinked. Checked on Github and it gets hyperlinked correctly so this seems like an issue.
Important: Same happens for other punctuation marks.
Example
Yo (click here to see a cool cat)
Workaround:
User can send the link without the formatting
Platform:
Where is this issue occurring?
Version Number: 1.0.80-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
View all open jobs on Upwork
From @mallenexpensify https://expensify.slack.com/archives/C01GTK53T8Q/p1627271189249400
The text was updated successfully, but these errors were encountered: