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

Bug in escaping single quotes in Newick export #448

Merged
merged 6 commits into from
Jan 17, 2024

Conversation

gaurav
Copy link
Contributor

@gaurav gaurav commented Dec 6, 2023

I made a dumb mistake in my previous PR (#441) where I used replace() instead of replaceAll(), so that only the first single quote was being escaped.

This PR fixes that, as well as making a few other minor fixes:

  • Added a test to catch this bug.
  • Replaced one use of != with !==.
  • Cleaned up the code, possibly fixing some other bugs as well.

Closes #450.

@stevenweaver stevenweaver merged commit 3a1df56 into veg:master Jan 17, 2024
@stevenweaver
Copy link
Member

Released in 2.0.1.

gaurav added a commit to phyloref/klados that referenced this pull request Mar 17, 2024
This PR upgrades all the NPM packages, which results in phylotree.js being upgraded to [phylotree.js v1.4.1](https:/veg/phylotree.js/releases/tag/v1.4.1), which includes two changes we requested. This PR will also fix the issues related to that change in Klados. We also remove the escaping code I added previously since phylotree.js fixed this in PR veg/phylotree.js#448.

Closes #197. Closes #200.
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.

Bug in escaping single quotes in Newick export
2 participants