From 09cf2c2aee797293bbe6829601f500be3e62bccf Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Oct 19 2016 08:17:22 +0000 Subject: [PATCH 1/2] Adjust the fork/main issue regex So that we can cross link to project using # or # where the project name contains a dash '-'. Relates to https://pagure.io/pagure/issue/1406 --- diff --git a/pagure/pfmarkdown.py b/pagure/pfmarkdown.py index 4fa826a..fe1b54d 100644 --- a/pagure/pfmarkdown.py +++ b/pagure/pfmarkdown.py @@ -31,8 +31,8 @@ import pagure.lib MENTION_RE = r'@(\w+)' -EXPLICIT_FORK_ISSUE_RE = r'(\w+)/(\w+)#([0-9]+)' -EXPLICIT_MAIN_ISSUE_RE = r'[^|\w](? Date: Oct 19 2016 08:17:22 +0000 Subject: [PATCH 2/2] Simplify the explicit regex and make it support PRs as well Fixes https://pagure.io/pagure/issue/1406 --- diff --git a/pagure/pfmarkdown.py b/pagure/pfmarkdown.py index fe1b54d..063d9a6 100644 --- a/pagure/pfmarkdown.py +++ b/pagure/pfmarkdown.py @@ -32,7 +32,7 @@ import pagure.lib MENTION_RE = r'@(\w+)' EXPLICIT_FORK_ISSUE_RE = r'(\w+)/([\w-]+)#([0-9]+)' -EXPLICIT_MAIN_ISSUE_RE = r'[^|\w](?