mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-09 08:41:15 +08:00
correct regex for name-or-subdomain match in URLs
This commit is contained in:
@@ -3220,7 +3220,7 @@ class BlockstackAPIEndpointHandler(SimpleHTTPRequestHandler):
|
||||
"""
|
||||
|
||||
URLENCODING_CLASS = r'[a-zA-Z0-9\-_.~%]+'
|
||||
NAME_CLASS = r'[a-z0-9\-_.+]{{{},{}}}'.format(3, LENGTH_MAX_NAME)
|
||||
NAME_CLASS = r'[a-z0-9\-_.+]{{{},{}}}'.format(3, 2*LENGTH_MAX_NAME + 1)
|
||||
NAMESPACE_CLASS = r'[a-z0-9\-_+]{{{},{}}}'.format(1, LENGTH_MAX_NAMESPACE_ID)
|
||||
BASE58CHECK_CLASS = r'[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz]+'
|
||||
|
||||
|
||||
@@ -24,4 +24,4 @@
|
||||
__version_major__ = '0'
|
||||
__version_minor__ = '18'
|
||||
__version_patch__ = '0'
|
||||
__version__ = '{}.{}.{}.4'.format(__version_major__, __version_minor__, __version_patch__)
|
||||
__version__ = '{}.{}.{}.5'.format(__version_major__, __version_minor__, __version_patch__)
|
||||
|
||||
Reference in New Issue
Block a user