From 8e876df233cc3d016636465fd9238212c2f57d68 Mon Sep 17 00:00:00 2001 From: anerdw Date: Wed, 20 Nov 2024 20:54:08 -0600 Subject: [PATCH] Use regex for auto-generated MS searches. Add "body_is_regex=1" to the MS searches that SmokeDetector automatically creates for new PRs. Should resolve [#10228](https://github.com/Charcoal-SE/SmokeDetector/issues/10228). --- gitmanager.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gitmanager.py b/gitmanager.py index c6122078e8..839137373f 100644 --- a/gitmanager.py +++ b/gitmanager.py @@ -197,8 +197,9 @@ def add_to_blacklist(cls, blacklist='', item_to_blacklist='', username='', chat_ payload = {"title": "{0}: {1} {2}".format(username, op.title(), item), "body": "[{0}]({1}) requests the {2} of the {3} `{4}`. See the MS search [here]" - "(https://metasmoke.erwaysoftware.com/search?utf8=%E2%9C%93{5}{6}) and the " - "Stack Exchange search [in text](https://stackexchange.com/search?q=%22{7}%22)" + "(https://metasmoke.erwaysoftware.com/search?utf8=%E2%9C%93&body_is_regex=1{5}{6}) " + "and the Stack Exchange search " + "[in text](https://stackexchange.com/search?q=%22{7}%22)" ", [in URLs](https://stackexchange.com/search?q=url%3A%22{7}%22)" ", and [in code](https://stackexchange.com/search?q=code%3A%22{7}%22)" ".\n"