add UUID support (#1241)
This commit is contained in:
committed by
Raphael Deem
parent
baa689ad43
commit
5ff481952d
@@ -1,4 +1,5 @@
|
||||
import re
|
||||
import uuid
|
||||
from collections import defaultdict, namedtuple
|
||||
from collections.abc import Iterable
|
||||
from functools import lru_cache
|
||||
@@ -18,6 +19,8 @@ REGEX_TYPES = {
|
||||
'number': (float, r'[0-9\\.]+'),
|
||||
'alpha': (str, r'[A-Za-z]+'),
|
||||
'path': (str, r'[^/].*?'),
|
||||
'uuid': (uuid.UUID, r'[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-'
|
||||
r'[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}')
|
||||
}
|
||||
|
||||
ROUTER_CACHE_SIZE = 1024
|
||||
|
||||
Reference in New Issue
Block a user