Command to identify matching regexSee original GitHub issue
Frequently in the recent past, we have had some “wtf” moments when an innocuous-looking phrase in a post triggered a “bad keyword in answer” or similar. Troubleshooting these is slow and somewhat demanding. Couldn’t we have Smoke Detector simply tell us which regex matched?
This was explored in the past when Quartata (I think it was) looked into having this information available for every post, but it turned out to be too slow.
A much less imposing solution would be to only provide this information when it is explicitly demanded, perhaps through a dedicated command.
!!/bisect though it’s probably too obscure. “Why” is already taken and
!!/wtf is probably too easy to type in by mistake … Additional proposals welcome.
The implementation I am imagining would check the input against everything, then gradually discard more and more of the blacklists until it has identified a single regex which is responsible for the detection.
(Corner case: What if a phrase matches more than one?)
- Created 5 years ago
- Comments:6 (6 by maintainers)