File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ def get_files(self):
67
67
"""Get all the 4.0 files *except* those we are linking to"""
68
68
self .files = [f for f in self .path .glob ('*_4.0*.html' )
69
69
if not f .match (self .exclude_pattern )]
70
+ self .files .sort ()
70
71
71
72
def process_files (self ):
72
73
"""Add links to all the license files"""
@@ -83,7 +84,7 @@ def file_license_and_language(self, filepath):
83
84
84
85
def links_in_page (self , content ):
85
86
"""Find the translated license links at the bottom of the page"""
86
- return re .findall (r'//creativecommons\.org/licenses/[^/]+/4\.0/legalcode(\... )?">([^>]+)</a>' , content )
87
+ return re .findall (r'//creativecommons\.org/licenses/[^/]+/4\.0/legalcode(\.[^"]{2,} )?">([^>]+)</a>' , content )
87
88
88
89
def is_rtl (self , content ):
89
90
"""Determine whether the page is in a right-to-left script"""
You can’t perform that action at this time.
0 commit comments