Skip to content

ignoreCase option#152

Closed
loretoparisi wants to merge 1 commit intokpdecker:masterfrom
loretoparisi:master
Closed

ignoreCase option#152
loretoparisi wants to merge 1 commit intokpdecker:masterfrom
loretoparisi:master

Conversation

@loretoparisi
Copy link
Contributor

Added a useful option ignoreCase to word and by character diff.

Copy link
Owner

@kpdecker kpdecker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add tests for this feature as well as address the build failure?

return left === right || (this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right));
return (left === right)
|| (this.options.ignoreWhitespace && !reWhitespace.test(left) && !reWhitespace.test(right))
|| (this.options.ignoreCase && left.toLowerCase() === right.toLowerCase());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens when both ignore flags are set?

@kpdecker
Copy link
Owner

Closing as #166 appears to answer some of the concerns here.

@kpdecker kpdecker closed this Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants