Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 21, 2024
1 parent 65dde95 commit 5f9e590
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 203 deletions.
6 changes: 3 additions & 3 deletions reacnetgenerator/static/webpack/formula.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ function capitalizeFirstLetter(string) {
function getFormula(smi) {
// consider [Ca] [C] [c]
const reg = /\[([a-zA-Z][a-z]?)\]/g;
const atom_types = [...smi.matchAll(reg)].map((m) =>
capitalizeFirstLetter(m[1]),
const atom_types = [...smi.matchAll(reg) ].map(
(m) => capitalizeFirstLetter(m[1]),
);
atom_types.sort();
const conut = {};
Expand All @@ -35,4 +35,4 @@ function getFormula(smi) {
return formula;
}

module.exports = { getFormula };
module.exports = {getFormula};
Loading

0 comments on commit 5f9e590

Please sign in to comment.