Commit 24de5772 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

reduce regexp searched text, since this usally occurs at the beginning for the file

parent 1d5b04e4567c
......@@ -44,7 +44,7 @@ UNICODE_POLICY = 'strict'
CHARSET_DECL_RGX = re.compile('(?:charset|(?:(?:en)?coding))[=:\s"\']*([^\s"\']*)',
re.I | re.S | re.U)
CHARSET_DECL_SEARCH_SIZE = 1024
CHARSET_DECL_SEARCH_SIZE = 512
CHARDET_MIN_SIZE = 20
CHARDET_CONFIDENCE_THRESHOLD = 0.75
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment