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

Commit8fd1df6

Browse files
committed
Accept space at end of (related to issue 83).
--HG--extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%401232
1 parent1284173 commit8fd1df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/html5lib/sanitizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def sanitize_css(self, style):
183183

184184
# gauntlet
185185
ifnotre.match("""^([:,;#%.\sa-zA-Z0-9!]|\w-\w|'[\s\w]+'|"[\s\w]+"|\([\d,\s]+\))*$""",style):return''
186-
ifnotre.match("^(\s*[-\w]+\s*:[^:;]*(;|$))*$",style):return''
186+
ifnotre.match("^\s*([-\w]+\s*:[^:;]*(;\s*|$))*$",style):return''
187187

188188
clean= []
189189
forprop,valueinre.findall("([-\w]+)\s*:\s*([^:;]*)",style):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp