reymond-group / smilesDrawer

A small, highly performant JavaScript component for parsing and drawing SMILES strings. Released under the MIT license.
https://smilesdrawer.rocks
MIT License
437 stars 70 forks source link

"Undefined" occasionally rendered #164

Open AlexanderGH opened 1 year ago

AlexanderGH commented 1 year ago

I occasionally see "un" (the first two characters of "undefined" being rendered. A simple test-case is "[O-2]".

Not sure if this is a bug due to some typo and using an undefined variable, or a larger bug in dealing with explicit oxidiation states for elements where it's usually auto-calculated based on valance.