Fix RegExp used to remove existing line classes #15

merged 2 commits into from Jan 7, 2012


None yet
2 participants

frangio commented Dec 30, 2011

It previously looked for zero or more space characters (\s*) before the LINE_CLASS_PREFIX, which could have caused it to also match other classes irrelevant to BigText. To prevent that, now it matches either the beginning of the line (^) or one or more space characters (\s+).


frangio commented Dec 31, 2011

Actually it should just be checking for word boundaries... Added a new commit to fix that.

@zachleat zachleat merged commit 05a27ec into zachleat:master Jan 7, 2012


zachleat commented Jan 7, 2012

Works great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment