Deprecate replaceAll
#70
Labels
No Label
bug
code-quality
documentation
duplicate
enhancement
feature
flair
invalid
on-hold
release
third-party bug
tooling
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tools/josh#70
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
replaceAll
function was used to replace all occurrences of a substring in a string, but this should be replaced by a simplereplace
using a regex wherever possible.The difference is that
"aaa".replaceAll(/aa/, "a")
equals"a"
whereas"aaa".replace(/aa/, "a")
equals"aa"
, which may be a more natural interpretation in some cases.