Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ugly chars from end with regex #3

Merged
merged 1 commit into from Aug 1, 2013
Merged

Remove ugly chars from end with regex #3

merged 1 commit into from Aug 1, 2013

Conversation

simeydotme
Copy link
Contributor

I noticed in the demo (http://micjamking.github.io/succinct/) that if you use the character count as 30 it leaves a "," at the end. this bothered me so i made a really simple addition that matches a regex at the end and removes characters like:

*,.{[(<¦¬~^

this is set as an option so the user can change, remove or whatever. if set to 'false' it wont try to remove.

Sorry about the tab/space issues.
not a lot really changed, but my IDE changed all the spacing.

I noticed in the demo (http://micjamking.github.io/succinct/) that if you use the character count as _30_ it leaves a "," at the end. this bothered me so i made a really simple addition that matches a regex at the end and removes characters like: 

*,.{[(<¦¬~^

this is set as an option so the user can change, remove or whatever. if set to 'false' it wont try to remove.
@micjamking micjamking merged commit 7d9311d into micjamking:master Aug 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants