| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
|
If we are doing this, we should add a ESLint rule to avoid making the same decision over and over again. |
Sorry, something went wrong.
|
@anonrig Thank you for your good opinion. |
Sorry, something went wrong.
There was a problem hiding this comment.
shouldn't this be srcPathSlashes.charAt(-1) instead of srcPathSlashes.substring(srcPathSlashes.length - 1)?
Sorry, something went wrong.
There was a problem hiding this comment.
srcPathSlashes.charAt(srcPathSlashes.length -1)
Sorry, something went wrong.
There was a problem hiding this comment.
srcPathSlashes.charAt(srcPathSlashes.length -1)
hmm I mean sure... but .charAt(-1) accomplishes the same result
Sorry, something went wrong.
There was a problem hiding this comment.
Err.. actually just .slice(-1)
Sorry, something went wrong.
There was a problem hiding this comment.
.charAt(-1) works differently than before. I think .slice(-1) is correct for this case. Thank you for your opinion.
Sorry, something went wrong.
|
I had divided the commits for review, but I will merge them into one and edit the First commit message. |
Sorry, something went wrong.
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: #51546 Refs: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/String/substr Reviewed-By: Jithil P Ponnan <jithil@outlook.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: #51546 Refs: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/String/substr Reviewed-By: Jithil P Ponnan <jithil@outlook.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: nodejs#51546 Refs: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/String/substr Reviewed-By: Jithil P Ponnan <jithil@outlook.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
| Back | FazBrowse Home | New Git URL |
Replace deprecated API.
Refs: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/String/substr