From dad0fddf4aeb376f263cb02c19f30c1891b64c59 Mon Sep 17 00:00:00 2001 From: Dennis Chen Date: Mon, 6 Jan 2020 12:48:04 -0500 Subject: [PATCH] add an exception to pseudo-elements for sulphonates --- src/Drawer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Drawer.js b/src/Drawer.js index 2b59f207..7af14d21 100644 --- a/src/Drawer.js +++ b/src/Drawer.js @@ -2934,6 +2934,11 @@ class Drawer { continue; } + // Ignore sulfonates + if (vertex.value.element === 'S') { + continue; + } + // Ignore also guanidine if (vertex.value.element === 'C' && neighbours.length === 3 && neighbours[0].value.element === 'N' && neighbours[1].value.element === 'N' && neighbours[2].value.element === 'N') {