Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d1a608

Browse files
author
谢炜
committed
fix translation error for "remove_double_slashes"
1 parenteb54b33 commit6d1a608

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎apt-mirror‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,19 @@ urls_to_download = {}
300300

301301

302302
defremove_double_slashes(string):
303+
while1:
304+
string,match=re.subn(r'/\./','/',string)
305+
ifnotmatch:
306+
break
307+
while1:
308+
string,match=re.subn(r'(?<!:)//','/',string)
309+
ifnotmatch:
310+
break
311+
while1:
312+
string,match=re.subn(r'(?<!:/)/[^/]+/\.\./','/',string)
313+
ifnotmatch:
314+
break
315+
303316
ifget_variable("_tilde"):
304317
string=string.replace('~','%7E')
305318
returnstring

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp