-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #922 from meator/fix-invalid-escape-sequences
Fix invalid escape sequences
- Loading branch information
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ class LaunchpadBugURLHandler(plugin.URLHandler): | |
Launchpad Bug URL""" | ||
capabilities = ['url_handler'] | ||
handler_name = 'launchpad_bug' | ||
match = '\\b(lp|LP):?\s?#?[0-9]+(,\s*#?[0-9]+)*\\b' | ||
match = r'\b(lp|LP):?\s?#?[0-9]+(,\s*#?[0-9]+)*\b' | ||
nameopen = "Open Launchpad bug" | ||
namecopy = "Copy bug URL" | ||
|
||
|
@@ -36,7 +36,7 @@ class LaunchpadCodeURLHandler(plugin.URLHandler): | |
lpfilters['series'] = lpfilters['project'] | ||
lpfilters['branch'] = '[a-zA-Z0-9]{1}[[email protected]]+' | ||
|
||
match = '\\b((lp|LP):%(project)s(/%(series)s)?|(lp|LP):%(group)s/(%(project)s|\+junk)/%(branch)s)\\b' % lpfilters | ||
match = r'\b((lp|LP):%(project)s(/%(series)s)?|(lp|LP):%(group)s/(%(project)s|\+junk)/%(branch)s)\b' % lpfilters | ||
|
||
def callback(self, url): | ||
"""Look for the number in the supplied string and return it as a URL""" | ||
|