Skip to content

Commit 07f881e

Browse files
committed
Minor fix
1 parent b4fbb9c commit 07f881e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
)
255255

256256
# Regular expression used for parsing charset info from meta html headers
257-
META_CHARSET_REGEX = r'(?si)<head>.*<meta http-equiv="?content-type"?[^>]+charset=(?P<result>[^">]+).*</head>'
257+
META_CHARSET_REGEX = r'(?si)<head>.*<meta[^>]+charset="?(?P<result>[^"> ]+).*</head>'
258258

259259
# Regular expression used for parsing refresh info from meta html headers
260260
META_REFRESH_REGEX = r'(?si)<head>.*<meta http-equiv="?refresh"?[^>]+content="?[^">]+url=["\']?(?P<result>[^\'">]+).*</head>'

0 commit comments

Comments
 (0)