diff --git a/scripts/rfr b/scripts/rfr index 50786a5ea..5c61e3d2a 100755 --- a/scripts/rfr +++ b/scripts/rfr @@ -45,11 +45,9 @@ to_addr = 'sw-mobile-nvgpu-core ' # Gerrit commit URL formats. These are regular expressions to match the # incoming URLs against. gr_fmts = [ r'^(\d+)$', - r'https?://git-master/r/(\d+)', - r'https?://git-master/r/#/c/(\d+)/', - r'https?://git-master.nvidia.com/r/(\d+)', - r'https?://git-master.nvidia.com/r/#/c/(\d+)/?', - r'https?://git-master.nvidia.com/r/c/(?:[\w\-_\/]+?)\+/(\d+)' ] + r'https?://git-master(?:\.nvidia\.com)?/r/(\d+)', + r'https?://git-master(?:\.nvidia\.com)?/r/#/c/(\d+)/?', + r'https?://git-master(?:\.nvidia\.com)?/r/c/(?:[\w\-_\/\.]+?)\+/(\d+)' ] # The user to use. May be overridden but the default comes from the environment. user = os.environ['USER']