Title: [295467] trunk/Tools/CISupport/ews-build
- Revision
- 295467
- Author
- jbed...@apple.com
- Date
- 2022-06-10 16:10:44 -0700 (Fri, 10 Jun 2022)
Log Message
[EWS] Remove extra space from GitHub PR description links
https://bugs.webkit.org/show_bug.cgi?id=241522
<rdar://problem/94842283>
Reviewed by Ryan Haddad.
* Tools/CISupport/ews-build/steps.py:
(UpdatePullRequest): Port changes from 250718@main to EWS.
(UpdatePullRequest.escape_html):
* Tools/CISupport/ews-build/steps_unittest.py:
Canonical link: https://commits.webkit.org/251472@main
Modified Paths
Diff
Modified: trunk/Tools/CISupport/ews-build/steps.py (295466 => 295467)
--- trunk/Tools/CISupport/ews-build/steps.py 2022-06-10 22:45:06 UTC (rev 295466)
+++ trunk/Tools/CISupport/ews-build/steps.py 2022-06-10 23:10:44 UTC (rev 295467)
@@ -5111,7 +5111,7 @@
ESCAPE_TABLE = {
'"': '"',
"'": ''',
- '>': ' >',
+ '>': '>',
'<': '<',
'&': '&',
}
@@ -5126,7 +5126,7 @@
@classmethod
def escape_html(cls, message):
message = ''.join(cls.ESCAPE_TABLE.get(c, c) for c in message)
- return re.sub(r'(https?://[^\s<>,:;]+)', r'<a href="" message)
+ return re.sub(r'(https?://[^\s<>,:;]+?)(?=[\s<>,:;]|(>))', r'<a href="" message)
def __init__(self, **kwargs):
super(UpdatePullRequest, self).__init__(logEnviron=False, timeout=300, **kwargs)
Modified: trunk/Tools/CISupport/ews-build/steps_unittest.py (295466 => 295467)
--- trunk/Tools/CISupport/ews-build/steps_unittest.py 2022-06-10 22:45:06 UTC (rev 295466)
+++ trunk/Tools/CISupport/ews-build/steps_unittest.py 2022-06-10 23:10:44 UTC (rev 295467)
@@ -6317,7 +6317,7 @@
<pre>
[Merge-Queue] Add http credential helper
<a href=""
-<rdar://problem/91044821 >
+<rdar://problem/91044821>
Reviewed by NOBODY (OOPS!).
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes