matsci-parse 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +4 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -654,9 +654,11 @@ function MA(I) {
|
|
|
654
654
|
for (let i = 0; i < I.length; i++) {
|
|
655
655
|
const w = I[i].trim();
|
|
656
656
|
if (!(!w || w.startsWith("&"))) {
|
|
657
|
-
if (
|
|
657
|
+
if (/^\s*ATOMIC_POSITIONS/i.test(w)) {
|
|
658
658
|
B = !0;
|
|
659
|
-
const N = w.match(
|
|
659
|
+
const N = w.match(
|
|
660
|
+
/^ATOMIC_POSITIONS\s*(?:\{|\()?(\w+)(?:\}|\))?/i
|
|
661
|
+
);
|
|
660
662
|
C = N ? N[1].toLowerCase() : "angstrom";
|
|
661
663
|
continue;
|
|
662
664
|
}
|