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

Suggestion: Option to only sub full words #123

Open
dantiadr opened this issue Oct 16, 2022 · 1 comment
Open

Suggestion: Option to only sub full words #123

dantiadr opened this issue Oct 16, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@dantiadr
Copy link

dantiadr commented Oct 16, 2022

For example.

Let's say you set the word "take" to have a sub of "take (on me)".

You are in a conversation with someone who says "I'm sorry, I was mistaken about that". The sub will replace that with: "I'm sorry, I was mistake (on me)n about that."

I'd love to be able to toggle subs to only apply to full words, such that it would sub correctly on "take", but not on "mistaken".

@dantiadr dantiadr added the enhancement New feature or request label Oct 16, 2022
@digitalnyc1
Copy link
Contributor

I believe this is already possible, since substitutes are regex. Use "\btake\b" instead of "take". The \b allows you to perform a "whole words only" match.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants