Skip to content

Commit ce8936c

Browse files
committed
include trailing slash in faq translation url
1 parent ee8a94f commit ce8936c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tools/cc0_update.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
import lang_tag_to
3434

3535

36-
FAQ_TRANSLATION_LINK = "/faq#officialtranslations"
36+
FAQ_TRANSLATION_LINK = "/faq/#officialtranslations"
3737
FOOTER_COMMENTS = [
3838
"<!-- Language Footer Start - DO NOT DELETE -->",
3939
"<!-- Language Footer End - - DO NOT DELETE -->",
@@ -209,7 +209,7 @@ def normalize_faq_translation_link(args, filename, content):
209209
)
210210
(?P<target>
211211
# Matches various translation FAQ URLs
212-
[^'"]*/[Ff][Aa][Qq][#][^'"]*
212+
[^'"]*/[Ff][Aa][Qq]/?[#][^'"]*
213213
)
214214
(?P<suffix>
215215
['"]

tools/cc4_update.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
},
159159
}
160160
)
161-
FAQ_TRANSLATION_LINK = "/faq#officialtranslations"
161+
FAQ_TRANSLATION_LINK = "/faq/#officialtranslations"
162162

163163

164164
class ToolError(Exception):
@@ -391,7 +391,7 @@ def normalize_faq_translation_link(args, filename, content):
391391
)
392392
(?P<target>
393393
# Matches various translation FAQ URLs
394-
[^'"]*/[Ff][Aa][Qq][#][^'"]*
394+
[^'"]*/[Ff][Aa][Qq]/?[#][^'"]*
395395
)
396396
(?P<suffix>
397397
['"]

0 commit comments

Comments
 (0)