Skip to content
This repository has been archived by the owner on Oct 20, 2018. It is now read-only.

"Thank you" should be excluded from code. #52

Open
learnor opened this issue Jan 20, 2016 · 5 comments
Open

"Thank you" should be excluded from code. #52

learnor opened this issue Jan 20, 2016 · 5 comments

Comments

@learnor
Copy link

learnor commented Jan 20, 2016

If certain key words like "thanks" "thank you" appear in your code quoted between ``` ````, the camperbot still send brownies to people mentioned.

@SaintPeter
Copy link
Member

We agree. If you can come up with a Regex that does that, we'd love to see it. It's a non-trivial problem.

@ghost
Copy link

ghost commented Apr 16, 2016

https://regex101.com/r/eG1oG7/1 @SaintPeter, If we to do an initial replace on the text something like this might work.

@SaintPeter
Copy link
Member

@noncentz That works great for multiline code (```). Great work.
What about inline code?

thanks

@ghost
Copy link

ghost commented Apr 17, 2016

@SaintPeter , https://regex101.com/r/eG1oG7/6 . We're almost there, it's going to need an edge case for comments too.

@SaintPeter
Copy link
Member

Great work, keep it up!

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

2 participants