Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
optimize the pattern, thx @jiivan
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeofblue committed Apr 4, 2019
1 parent 9cc67f4 commit fa341ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/golem/test_terms.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ def test_show(self, read_mock):
class TermsOfUseContentsTest(unittest.TestCase):
def assertContentsValid(self, contents):
matched = re.search(
"(["
"^a-zA-Z0-9_"
"\\n\\<\\>\\/\\.\\:\\\"\\=\\x20\\(\\)\\,\\;\\'\\-\\%"
"])",
r"([^a-zA-Z0-9_\n\<\>\/\.\:\"\=\x20\(\)\,\;\'\-\%])",
contents, flags=re.DOTALL)

try:
Expand Down

0 comments on commit fa341ae

Please sign in to comment.