diff options
Diffstat (limited to 'python/tidy')
-rw-r--r-- | python/tidy/servo_tidy/tidy.py | 2 | ||||
-rw-r--r-- | python/tidy/servo_tidy_tests/speclink.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py index 038ec900755..f9571298562 100644 --- a/python/tidy/servo_tidy/tidy.py +++ b/python/tidy/servo_tidy/tidy.py @@ -852,7 +852,7 @@ def check_spec(file_name, lines): macro_patt = re.compile("^\s*\S+!(.*)$") # Pattern representing a line with comment containing a spec link - link_patt = re.compile("^\s*///? https://.+$") + link_patt = re.compile("^\s*///? (<https://.+>|https://.+)$") # Pattern representing a line with comment or attribute comment_patt = re.compile("^\s*(///?.+|#\[.+\])$") diff --git a/python/tidy/servo_tidy_tests/speclink.rs b/python/tidy/servo_tidy_tests/speclink.rs index 7cf5031a7bd..81828055c06 100644 --- a/python/tidy/servo_tidy_tests/speclink.rs +++ b/python/tidy/servo_tidy_tests/speclink.rs @@ -19,11 +19,11 @@ impl SpecLinkMethods for SpecLink { fn Foo() {} /// A spec link. - /// https://example.com/ + /// <https://example.com/> fn Foo() {} /// A spec link. - /// https://example.com/ + /// <https://example.com/> /// Doc comments are OK // Regular comments are OK #[allow(attributes_too)] |