From 563fd2cda12dded76a9885b64b4437f4ce3f6b5a Mon Sep 17 00:00:00 2001 From: Saul Johnson Date: Tue, 22 Aug 2017 19:04:12 +0100 Subject: [PATCH] Permit periods in SMILES structures --- src/coffee/main.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coffee/main.coffee b/src/coffee/main.coffee index 989d138..4e2acbb 100644 --- a/src/coffee/main.coffee +++ b/src/coffee/main.coffee @@ -115,7 +115,7 @@ $(document).ready -> # @param [function] fail the failure callback # checkSmiles = (smiles, success, fail) -> - regex = /^([^J][a-z0-9@+\-\[\]\(\)\\\/%=#$]{0,})$/ig + regex = /^([^J][a-z0-9@+\.\-\[\]\(\)\\\/%=#$]{0,})$/ig if regex.test smiles then success() else fail() # Checks if a string is a valid hex color.