Skip to content

Conversation

@doowb
Copy link
Collaborator

@doowb doowb commented Apr 11, 2017

This PR adds a strict option to turn off throwing an error if a string has unclosed quotes.
I can see how this is useful for single quotes like 'doowb\'s'. I'm not sure when it makes sense for double quotes, but it handles that too.

I also changed the error message for single quotes to unclosed single quote so it differentiates between the two.

Let me know if this looks okay or if you think there might be a better way of doing this.

@jonschlinkert
Copy link
Owner

looks great thanks!

jonschlinkert added a commit to micromatch/nanomatch that referenced this pull request Apr 11, 2017
inspired by @doowb's [pr to split-string](jonschlinkert/split-string#2)
@doowb doowb merged commit 7f21653 into master Apr 11, 2017
@doowb doowb deleted the strict branch April 11, 2017 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants