Skip to content

Commit 09e3fb2

Browse files
committed
Dropped 0x from hex field regex. Replaced a-fA-F with the more succinct A-f.
1 parent cc2272d commit 09e3fb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

push_notifications/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
__all__ = ["HexadecimalField", "HexIntegerField"]
1111

1212

13-
hex_re = re.compile(r"^0x[0-9a-fA-F]+$")
13+
hex_re = re.compile(r"^[0-9A-f]+$")
1414
postgres_engines = [
1515
"django.db.backends.postgresql_psycopg2",
1616
"django.contrib.gis.db.backends.postgis",

0 commit comments

Comments
 (0)