pvdspek / jquery.autoellipsis

Auto-ellipsis plugin for jQuery
http://pvdspek.github.com/jquery.autoellipsis
MIT License
142 stars 32 forks source link

.ellipsis() errors when data contains reserved regex characters #9

Closed stembrain closed 12 years ago

stembrain commented 12 years ago

Trying to call ellipsis on this HTML

The Analytical Chemistry Laboratory has a CLIA Certificate of Compliance and provides custom testing for investigators. Sample types can vary from serum/plasma to tissue or cell homogenates. However, certain tests require special sample handling. Please contact the Analytical Laboratory for more information and current pricing. Electrolytes analyzed by NOVA analyzer. Na+ K+ Total Ca2+ Li

produces this error in Chrome: Uncaught Syntax error, unrecognized expression:

stembrain commented 12 years ago

I created a better test case and found out its a problem with my code :)