We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tried
var diffs = worddiff.diffString( "Tom , reads novels but Jack reads comics .", "Tom reads novels , but Jack reads comics ." ); console.log(diffs);
and I am getting
[ { text: 'Tom , reads novels but Jack reads comics .' } ]
Therefore no difference is detected...
The text was updated successfully, but these errors were encountered:
And a runkit sample https://runkit.com/embed/lreu16ado691
Sorry, something went wrong.
That is something to do with
word-diff/index.js
Line 37 in 41a7f0b
it returns only words.
Instead it can use o.split(/\s+|\\W/)
o.split(/\s+|\\W/)
>> "Tom reads novels , but Jack reads comics .".split(/\s+|\\W/) >> (9) ['Tom', 'reads', 'novels', ',', 'but', 'Jack', 'reads', 'comics', '.']
No branches or pull requests
Tried
and I am getting
[ { text: 'Tom , reads novels but Jack reads comics .' } ]
Therefore no difference is detected...
The text was updated successfully, but these errors were encountered: