-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Simplify FindUtils.parseDollars #7582
Conversation
|
Marking low priority. (@SAplayer - not intended to be an insult :), but we're starting to try to sort out pull requests that need to be dealt with more urgently from ones that can wait a bit.) |
src/search/FindReplace.js
Outdated
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.
nit: "unescaped"
|
Before merging this, let me check whether it will merge cleanly with the replace-across-files branch - I might have moved the function elsewhere. |
|
@njx OK. I was surprised it hadn't moved already :) Getting replace-across-files in is higher priority, so you can just carry on, merge that and then we'll see what needs to happen. |
|
Yup, it's moved to |
|
@dangoor There are no tests specificially for this function, but there are many for the functionality: |
|
@SAplayer Ahh, you're right. That's fine. |
…llars Conflicts: src/search/FindReplace.js
|
@SAplayer Thanks for merging this in with the recent find changes. |
Simplify FindUtils.parseDollars
I tried to simplify/comment the quite complicated
FindReplacehelper functionparseDollars, but to be honest, I don't know if I made it better or worse.Let's see if someone understands the function now 😆
The only architectural change is that
parseIntis only called after we made sureindexis indeed an integer (and not&).