Skip to content

Fix typo in getDelimiter space/hyphen index comparison#758

Open
wladerer wants to merge 1 commit intomaterialsproject:mainfrom
wladerer:fix/get-delimiter-typo
Open

Fix typo in getDelimiter space/hyphen index comparison#758
wladerer wants to merge 1 commit intomaterialsproject:mainfrom
wladerer:fix/get-delimiter-typo

Conversation

@wladerer
Copy link
Copy Markdown

@wladerer wladerer commented Apr 4, 2026

Summary

When querying ternary phase diagrams, 'Li-Zn-O' and 'Li - Zn - O' produce very different results. I suppose the actual fix is for the user (me) to use the formatting convention suggested by the website, but it seems like a nice thing to have.

space.index > space.index on line 133 always evaluates to false

Major changes:

(!hyphen || (hyphen.index && space.index > space.index)) -> (!hyphen || (hyphen.index && space.index > hyphen.index))

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.

1 participant