cbouy / mols2grid

Interactive molecule viewer for 2D structures
https://mols2grid.readthedocs.io
Apache License 2.0
206 stars 25 forks source link

Fix text search #39

Closed cbouy closed 1 year ago

cbouy commented 1 year ago

Fixes #34.

Text searches containing any of the following regex characters -[]{}()*+?.,\^$|# would automatically return an empty grid, preventing searching for CAS numbers and any other identifier or text containing the above characters.

This has been temporarily patched until a proper fix is released in the underlying list.js library.

codecov-commenter commented 1 year ago

Codecov Report

Merging #39 (a395307) into master (7723b24) will not change coverage. The diff coverage is n/a.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #39 +/- ## ======================================= Coverage 90.43% 90.43% ======================================= Files 10 10 Lines 523 523 ======================================= Hits 473 473 Misses 50 50 ``` [![Impacted file tree graph](https://codecov.io/gh/cbouy/mols2grid/pull/39/graphs/tree.svg?width=650&height=150&src=pr&token=QDI1XQSDUC&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=C%C3%A9dric+Bouysset)](https://codecov.io/gh/cbouy/mols2grid/pull/39?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=C%C3%A9dric+Bouysset)