camper-gitter-bot icon indicating copy to clipboard operation
camper-gitter-bot copied to clipboard

"Thank you" should be excluded from code.

Open learnor opened this issue 9 years ago • 5 comments

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

learnor avatar Jan 20 '16 17:01 learnor

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.

SaintPeter avatar Jan 20 '16 19:01 SaintPeter

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

ghost avatar Apr 16 '16 10:04 ghost

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

thanks

SaintPeter avatar Apr 16 '16 19:04 SaintPeter

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

ghost avatar Apr 17 '16 02:04 ghost

Great work, keep it up!

SaintPeter avatar Apr 18 '16 00:04 SaintPeter