-
-
Notifications
You must be signed in to change notification settings - Fork 230
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 collapseLeadingSlashes function for simplicity and readability #183
base: master
Are you sure you want to change the base?
Refactor collapseLeadingSlashes function for simplicity and readability #183
Commits on Nov 6, 2024
-
Refactor zeroPad to use padStart for improved readability
Replaced the manual loop with `padStart` to simplify the code and improve readability. This aligns with modern JavaScript practices, making the function more concise and easier to maintain. No functional changesjust a cleaner, more efficient approach to padding numbers with leading zeros.
Configuration menu - View commit details
-
Copy full SHA for 61e8474 - Browse repository at this point
Copy the full SHA 61e8474View commit details -
Refactor collapseLeadingSlashes function for simplicity and readability
Replaced the old implementation of collapseLeadingSlashes, which iterated over each character, with a more concise and efficient version using a regular expression. The new version uses eplace() to collapse leading slashes into a single slash and handles empty strings by returning '/'. This update improves code readability and leverages modern JavaScript string methods.
Configuration menu - View commit details
-
Copy full SHA for 8574a80 - Browse repository at this point
Copy the full SHA 8574a80View commit details
Commits on Nov 7, 2024
-
Refactor collapseLeadingSlashes function for simplicity and readability
Replaced the old implementation of collapseLeadingSlashes, which iterated over each character, with a more concise and efficient version using a regular expression. The new version uses eplace() to collapse leading slashes into a single slash and handles empty strings by returning '/'. This update improves code readability and leverages modern JavaScript string methods.
Configuration menu - View commit details
-
Copy full SHA for ae5c141 - Browse repository at this point
Copy the full SHA ae5c141View commit details -
Configuration menu - View commit details
-
Copy full SHA for af7cd7b - Browse repository at this point
Copy the full SHA af7cd7bView commit details -
Refactor zeroPad to use padStart for improved readability
Replaced the manual loop with `padStart` to simplify the code and improve readability. This aligns with modern JavaScript practices, making the function more concise and easier to maintain. No functional changesjust a cleaner, more efficient approach to padding numbers with leading zeros.
Configuration menu - View commit details
-
Copy full SHA for 7fc73c8 - Browse repository at this point
Copy the full SHA 7fc73c8View commit details -
Refactor zeroPad to use padStart for improved readability Replaced th…
…e manual loop with padStart to simplify the code and improve readability. This aligns with modern JavaScript practices, making the function more concise and easier to maintain. No functional changesjust a cleaner, more efficient approach to padding numbers with leading zeros.
Configuration menu - View commit details
-
Copy full SHA for 9a94734 - Browse repository at this point
Copy the full SHA 9a94734View commit details -
Merge branch 'chore/collapseLeadingSlashes' of https://github.com/Ayo…
…ub-Mabrouk/serve-static into chore/collapseLeadingSlashes
Configuration menu - View commit details
-
Copy full SHA for fbf723b - Browse repository at this point
Copy the full SHA fbf723bView commit details -
Refactor collapseLeadingSlashes function for simplicity and readability
Replaced the old implementation of collapseLeadingSlashes, which iterated over each character, with a more concise and efficient version using a regular expression. The new version uses eplace() to collapse leading slashes into a single slash and handles empty strings by returning '/'. This update improves code readability and leverages modern JavaScript string methods.
Configuration menu - View commit details
-
Copy full SHA for d3f9d3c - Browse repository at this point
Copy the full SHA d3f9d3cView commit details -
Merge branch 'chore/collapseLeadingSlashes' of https://github.com/Ayo…
…ub-Mabrouk/serve-static into chore/collapseLeadingSlashes
Configuration menu - View commit details
-
Copy full SHA for 3f73a4b - Browse repository at this point
Copy the full SHA 3f73a4bView commit details