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.
Files changed (2) hide show
  1. package/dist/main.js +4 -2
  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 (/^ATOMIC_POSITIONS/i.test(w)) {
657
+ if (/^\s*ATOMIC_POSITIONS/i.test(w)) {
658
658
  B = !0;
659
- const N = w.match(/^ATOMIC_POSITIONS\s+(\w+)/i);
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matsci-parse",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "main": "dist/main.js",
6
6
  "module": "dist/main.js",