File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed
Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 66from django .forms import ValidationError
77from django .urls import reverse
88
9- regex_check = (r'(?!(\A( \x09\x0A\x0D\x20-\x7E # ASCII '
10- r'| \xC2-\xDF # non-overlong 2-byte '
11- r'| \xE0\xA0-\xBF # excluding overlongs '
12- r'| \xE1-\xEC\xEE\xEF{2} # straight 3-byte '
13- r'| \xED\x80-\x9F # excluding surrogates '
14- r'| \xF0\x90-\xBF{2} # planes 1-3 '
15- r'| \xF1-\xF3{3} # planes 4-15 '
16- r'| \xF4\x80-\x8F{2} # plane 16 )*\Z))' )
9+ regex_check = (
10+ r'^(' # start at start
11+ r'[\x09\x0A\x0D\x20-\x7E]' # ASCII
12+ r'|[\xC2-\xDF]' # non-overlong 2-byte
13+ r'|[\xE0\xA0-\xBF]' # excluding overlongs
14+ r'|[\xE1-\xEC\xEE\xEF]{2}' # straight 3-byte
15+ r'|[\xED\x80-\x9F]' # excluding surrogates
16+ r'|[\xF0\x90-\xBF]{2}' # planes 1-3
17+ r'|[\xF1-\xF3]{3}' # planes 4-15
18+ r'|[\xF4\x80-\x8F]{2}' # plane 16
19+ r')*$' ) # match all until end
1720
1821
1922class XISConfiguration (models .Model ):
You can’t perform that action at this time.
0 commit comments