-
Notifications
You must be signed in to change notification settings - Fork 509
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
fix(macros/jsxref): fix dot handling #11869
Conversation
Previously we replaces all single dots with a slash. This resulted in: {{jsxref("Operators/new%2Etarget", "new.target")}} An alternative is to change the logic to: If there is an slash in the 1st parameter don't replace the dots. This works for all en-US and the issue I found in translated content where alread broken.
Bundle StatsHey there, this message comes from a github action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger No assets were bigger Smaller No assets were smaller Unchanged
|
@Josh-Cena could you take a look at this? |
This is one step in the direction of my great plans of a smart jsxref 😄 I'm not sure anyone has appetite to review all of those changes but this one looks safe to me. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valuable improvement and has no downside on the current content.
Summary
Previously we replaces all single dots with a slash. This resulted in:
{{jsxref("Operators/new%2Etarget", "new.target")}}
An alternative is to change the logic to:
If there is an slash in the 1st parameter don't replace the dots. This works for all en-US and the issue I found in translated content where alread broken.
Problem
Allow
{{jsxref("Operators/new.target", "new.target")}}
Solution
Change the logic and don't replace dot's if there's slashes.
How did you test this change?
Locally