diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-04-15 21:35:48 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-04-17 10:56:17 -0700 |
commit | 116a26f072e8628cc4cfabb2e55c6661b6b94605 (patch) | |
tree | b1a38a3c26eef2da3312daa72557e81694600031 /python/fatcat_web | |
parent | 2c0a6c23eb4edf2941a1c106ce556ed505e778b1 (diff) | |
download | fatcat-116a26f072e8628cc4cfabb2e55c6661b6b94605.tar.gz fatcat-116a26f072e8628cc4cfabb2e55c6661b6b94605.zip |
consistently use raw string prefix for regex
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/forms.py b/python/fatcat_web/forms.py index dd322cff..377e35aa 100644 --- a/python/fatcat_web/forms.py +++ b/python/fatcat_web/forms.py @@ -91,7 +91,7 @@ class ReleaseEntityForm(EntityEditForm): [validators.Optional(True)]) #release_year doi = StringField('DOI', - [validators.Regexp('^10\..*\/.*', message="DOI must be valid"), + [validators.Regexp(r'^10\..*\/.*', message="DOI must be valid"), validators.Optional(True)]) wikidata_qid = StringField('Wikidata QID') isbn13 = StringField('ISBN-13') |