Skip to content

Commit ea06f8f

Browse files
authored
Merge pull request #10 from malinkinsa/fix_validation
Few changes in regexp checks
2 parents 4d04f2d + 1f069b5 commit ea06f8f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

asyncgelf/asyncgelf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def __init__(
6060
- Allowed characters in field names are any word character (letter, number, underscore), dashes and dots.
6161
"""
6262
if self.additional_field:
63-
prefix_pattern = re.compile(r'^_.*$')
63+
prefix_pattern = re.compile(r'^_')
6464
character_pattern = re.compile(r'^[\w\.\-]*$')
65-
id_pattern = re.compile(r'^_id$')
65+
id_pattern = re.compile(r'^_id\b')
6666

6767
for k, v in self.additional_field.items():
6868
if prefix_pattern.search(k) is None:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
setup(
44
name='asyncgelf',
5-
version='1.0.1',
5+
version='1.0.2',
66
author='Sergey Malinkin',
77
author_email='[email protected]',
88
url='https://github.com/malinkinsa/asyncgelf',
9-
download_url='https://github.com/malinkinsa/asyncgelf/archive/refs/tags/1.0.1.tar.gz',
9+
download_url='https://github.com/malinkinsa/asyncgelf/archive/refs/tags/1.0.2.tar.gz',
1010
description='Async python logging handlers that send messages in the Graylog Extended Log Format (GELF).',
1111
long_description=open('README.md').read(),
1212
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)