diff --git a/.github/python_matcher.json b/.github/python_matcher.json index ac38ab7eca88eec6bca07f0cf5bd7b72337807ee..6532ac36ef77b639a826348a69c5ab6e4e5a16d8 100644 --- a/.github/python_matcher.json +++ b/.github/python_matcher.json @@ -4,7 +4,7 @@ "owner": "yapf-diff", "pattern": [ { - "regexp": "^[+-]{3}\\s*([^\\s]*)\\s*\\((original|reformatted)\\)$", + "regexp": "^(?:---|\\+\\+\\+)\\s*([^\\s]*)\\s*\\((?:original|reformatted)\\)$", "file": 1 }, { @@ -13,7 +13,7 @@ "column": 2 }, { - "regexp": "^(\\s|\\+[^+]|\\-[^-]).*$", + "regexp": "^((?:\\s|\\+[^+]|\\-[^-]).*)$", "loop": true, "message": 1 }