From 32f00908884351c48d2dc1c14c7b84d2e08f70bf Mon Sep 17 00:00:00 2001 From: Jean-Michel Picod <jmichel@google.com> Date: Tue, 28 Apr 2020 18:24:46 +0200 Subject: [PATCH] Try to fix yapf matcher --- .github/python_matcher.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/python_matcher.json b/.github/python_matcher.json index ac38ab7..6532ac3 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 } -- GitLab