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

#3339 - Add empty options for atom charges and isotops #3392

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

AKZhuk
Copy link
Collaborator

@AKZhuk AKZhuk commented Oct 3, 2023

How the feature works? / How did you fix the issue?

(Screenshots, videos, or GIFs, if applicable)

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"
  • reviewers are notified about the pull request

@AKZhuk AKZhuk linked an issue Oct 3, 2023 that may be closed by this pull request
@AKZhuk AKZhuk force-pushed the 3339-add-empty-options-for-atom-charges-and-isotops branch from 2254d63 to 10caeff Compare October 4, 2023 11:17
if (value === '0') return '';
return value.includes('-') ? value : `+${value}`;
if (value === '') return value;
const regExpResult = /^([+-]?)([0-9]{1,3}|1000)([+-]?)$/.exec(value);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you, please, clarify/add comment, when there is a case with +number+? What is it applicable for?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For charge input ketcher supports +/- before and after number

@Nitvex Nitvex merged commit 13ab780 into master Oct 5, 2023
5 checks passed
@Nitvex Nitvex deleted the 3339-add-empty-options-for-atom-charges-and-isotops branch October 5, 2023 15:29
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.

Add empty options for atom charges and isotops
4 participants