ソースを参照

Improve version check regex

Jad Bitar 9 年 前
コミット
3e0b3818b2
1 ファイル変更1 行追加1 行削除
  1. 1 1
      .varci.yml

+ 1 - 1
.varci.yml

@@ -38,7 +38,7 @@ ruleset:
     when:
     when:
       - action = "opened" or action = "re-opened"
       - action = "opened" or action = "re-opened"
       - body matches "/\[x\] bug/"
       - body matches "/\[x\] bug/"
-      - 'not(body matches "/CakePHP Version: (\d+\.)?(\d+\.)?(\*|\d+)/")'
+      - 'not(body matches "/CakePHP Version: v?(\d+\.)?(\d+\.)?(\*|\d+)/")'
       - 'not(body matches "/CakePHP Version: [0-9a-f]{5,40}/")'
       - 'not(body matches "/CakePHP Version: [0-9a-f]{5,40}/")'
     comment: '{{ user.login }}, please include the CakePHP version number you are using in your description. It helps us debug your issue.'
     comment: '{{ user.login }}, please include the CakePHP version number you are using in your description. It helps us debug your issue.'