From b535c5dca6672a5e329f0b58579289f54b344915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Mon, 2 Nov 2020 15:18:46 +0100 Subject: [PATCH] Fix problem with xyz geometry with the line containing the number of atoms have right extra space are not readed correctly --- static/js/Geometry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/Geometry.js b/static/js/Geometry.js index 72d41697..f0e26c5c 100644 --- a/static/js/Geometry.js +++ b/static/js/Geometry.js @@ -21,7 +21,7 @@ class Geometry { static loadXYZString(text) { var lines = text.split("\n") var indexes = lines.findAllIndexes((line) => { - return line.match(/^\d+$/) + return line.match(/^\d+\s*$/) }) indexes.push(lines.length) var geoms = []