Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Too aggressive parsing of aliases #4

Open
adambullmer opened this issue Jul 2, 2015 · 0 comments
Open

Too aggressive parsing of aliases #4

adambullmer opened this issue Jul 2, 2015 · 0 comments

Comments

@adambullmer
Copy link

Is there a way to make sure that aliases inside formatting can be ignored? We often return output from servers that contain user@machinename and the @machinename might trigger an alias inadvertently.

Example:
user1: something something @alias some other formatted output here
bot: user1, user2 ^

I feel that anything inside the following formatting blocks should not be parsed and echoed out:

`@alias`
```@alias```
> @alias
3dm1 pushed a commit to 3dm1/slack-alias-plugin that referenced this issue May 29, 2016
Prevent matching mentions within quotes or code snippets. For ease of implementation, the regex searches for  ` only after the mention, instead of trying to match it after and before, this mean "`@abc `" will match.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant