You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As in, you'd like a version of diffWordsWithSpace that treats whitespace changes as changes except for changes where spaces are converted to non-breaking spaces, or vice versa, in which case you want the strings to be treated as identical?
There's of course no option specifically for that highly specific task, nor would I want to add one. But you could in principle do this by extending wordDiff with a tweaked equals method. We don't have got docs on defining custom differs right now, but we've got an issue to add such docs (#149) which I'll get to at some point.
Hello,
I'm using
wordsWithSpace
function to make the diff but I'd like not to catch unbreakable spaces. Is there any option to do that?For the moment I do this:
The text was updated successfully, but these errors were encountered: