-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Refactor RegExp Documentation: Fix Typos and Enhance Formatting; #5449
Conversation
Thanks for raising the PR @A-Berezvay, I'll be reviewing it now also please sign the CLA document :) |
Great thank you! Let me know if anything require further assistance :) |
Hi @dakshdeepHERE , could you please review this PR when you have a chance? Thanks! |
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.
Some minor changes from my side and this looks good for second review.
|
||
1. **Literal Notation**: Use slashes to delimit the pattern, followed by any flags. | ||
```pseudo |
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.
Use ```js
for the codeblock.
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.
Hey @A-Berezvay, excellent entry! I have only one change to be made. Please do it as soon as possible. Thanks!!
|
||
// Using RegExp constructor | ||
2. **Constructor Function**: Use the `RegExp` constructor, passing the pattern as the first argument and any flags as the second. | ||
```pseudo |
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.
Use ```js
for the codeblock.
Fixed minor issues like adding line breaks and updating example headings to example 1 and example 2.
fixed formating issues
fixed lint issue
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.
LGTM!!
👋 @A-Berezvay 🎉 Your contribution(s) can be seen here: https://www.codecademy.com/resources/docs/javascript/regexp Please note it may take a little while for changes to become visible. |
Description
Issue Solved
Type of Change
Checklist
main
branch.Issues Solved
section.