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

Ignore ++ inside code blocks #5

Open
jnerius opened this issue Oct 18, 2017 · 3 comments
Open

Ignore ++ inside code blocks #5

jnerius opened this issue Oct 18, 2017 · 3 comments

Comments

@jnerius
Copy link
Owner

jnerius commented Oct 18, 2017

To prevent the assignment of points to erroneous things like the letter i, ignore ++ when it is found inside a code block.

It should be possible to detect this by determining if the target is inside ` or ```

@jacebenson
Copy link

jacebenson commented Oct 19, 2017

I'm going to add the following regex and strip the things in code from the slack points business rule;
((```)|(`))((.|\s))(.)(\s?@?(\S+)\s?++)((.|\s*))((```)|(`))
Pretty much if it starts with ``` or ` followed by any thing until it hits ++ and ends in ``` or `, find it.
I'll then replace it.

@jacebenson
Copy link

@jacebenson
Copy link

@jnerius let me know if there's more i can do to get this moved.

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