Skip to content
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

New increment without separators #944

Merged
merged 3 commits into from
Oct 26, 2016
Merged

New increment without separators #944

merged 3 commits into from
Oct 26, 2016

Conversation

xconverge
Copy link
Member

@xconverge xconverge commented Oct 19, 2016

Yay! We love PRs! 🎊

Please include a description of your change and ensure:

  • Commit message has a short title & issue references
  • Each commit does a logical chunk of work.
  • It builds and tests pass (e.g gulp)

More info can be found on our contribution guide.

@sectioneight @johnfn took another stab at this one, last attempt was #661

let newNum = input;

// Only use this section if this is a number surrounded by letters
if (findNondigits.exec(input) !== null && NumericString.matchings[NumericString.matchings.length - 1].regex === regex) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would like feedback on how I can get an ID to only run this for 1 of the 4 regex situations

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean? I don't understand.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right here I am only doing this logic if it is the last regex in the list (none of the others matched, so the last one is a catchall for anything that contains any number) It seems like a hack to depend on the last regex in the list to be this catchall...

@xconverge
Copy link
Member Author

This should be good to go unless someone has some more feedback, I tested it a bit more and am happy enough with it

@rebornix
Copy link
Member

LGTM.

@rebornix rebornix merged commit a0a69ee into VSCodeVim:master Oct 26, 2016
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants