Merge pull request #621 from stepshal/anomalous-backslash-in-string

Fix anomalous backslash in string
This commit is contained in:
Adam Tauber
2016-07-18 22:27:17 +02:00
committed by GitHub
21 changed files with 47 additions and 47 deletions

View File

@@ -5,7 +5,7 @@ from threading import RLock
from urlparse import urlparse, unquote
from searx.engines import engines
CONTENT_LEN_IGNORED_CHARS_REGEX = re.compile('[,;:!?\./\\\\ ()-_]', re.M | re.U)
CONTENT_LEN_IGNORED_CHARS_REGEX = re.compile(r'[,;:!?\./\\\\ ()-_]', re.M | re.U)
WHITESPACE_REGEX = re.compile('( |\t|\n)+', re.M | re.U)