mirror of
https://github.com/bckelley/avogadrio.git
synced 2026-08-24 02:04:11 -05:00
Merge pull request #10 from lambdacasserole/fix-smiles-length-limit
Allow SMILES structures fewer than 7 characters long
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@+\-\[\]\(\)\\\/%=#$]{6,})$/ig
|
||||
regex = /^([^J][a-z0-9@+\-\[\]\(\)\\\/%=#$]{0,})$/ig
|
||||
if regex.test smiles then success() else fail()
|
||||
|
||||
# Actions to take when we refresh the preview.
|
||||
|
||||
Reference in New Issue
Block a user