mirror of
https://github.com/bckelley/avogadrio.git
synced 2026-08-24 10:14:10 -05:00
Permit periods in SMILES structures
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user