Skip to content
New issue

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

Can we ignore specific characters like *,\ etc using diffWords ? #403

Closed
OmkarPh opened this issue Jun 14, 2023 · 1 comment
Closed

Can we ignore specific characters like *,\ etc using diffWords ? #403

OmkarPh opened this issue Jun 14, 2023 · 1 comment

Comments

@OmkarPh
Copy link

OmkarPh commented Jun 14, 2023

I don't want the following to be detected as a diff.
Ignoring the * before & after this word should do the trick ig (I don't want to track special characters in my diff anyway)
image

Is there any way to achieve this?
I'm using diffWords here btw

@ExplodingCabbage
Copy link
Collaborator

Not trivial current way, and I don't think I'd want to add it, but #221 is a similar request and might give you the results you want here (if/when I implement it).

The one thing you can currently do is roll your own tokenization and equality-checking logic to get the behaviour you want.

@ExplodingCabbage ExplodingCabbage closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants