Skip to content

Conversation

@simison
Copy link
Contributor

@simison simison commented Nov 3, 2015

Solves issues with multiple spaces, tabs, new lines etc.

\040 matches space character only; \s matches everything, tabs and all that stuff.

Old: http://rubular.com/r/9hbxQPKhsp
New: http://rubular.com/r/oM9xZ8jw1m

Includes a new test for this.

Regarding #95 (comment)

Solves issues with multiple spaces, tabs, new lines etc.

Old: http://rubular.com/r/9hbxQPKhsp
New: http://rubular.com/r/oM9xZ8jw1m

Includes a new test for this.
@simison
Copy link
Contributor Author

simison commented Nov 3, 2015

BTW should I include files from /dist folder as well?

Edit; found https://github.com/gregjacobs/Autolinker.js#contributing

@gregjacobs
Copy link
Owner

Hey, thanks so much for this, and thanks for contributing! Great job with tests too 👍

gregjacobs added a commit that referenced this pull request Nov 8, 2015
Use spaces instead of whitespace at phoneRegex
@gregjacobs gregjacobs merged commit 84c577b into gregjacobs:master Nov 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants