Skip to content

Commit e5546eb

Browse files
authored
Fix: Convert condition & event value to string when regex matching (#20)
Fix: Convert condition & event value to string when regex matching for sample rate Refactor: Bump dependencies to the latest version Bump version to 0.3.1
1 parent fb2d9cd commit e5546eb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2020 Moesif, Inc
1+
Copyright (c) 2023 Moesif, Inc
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

moesifpythonrequest/app_config/regex_config_helper.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def regex_match(cls, event_value, condition_value):
5050
Return:
5151
regex_matched: Regex matched value to determine if the regex match was successful
5252
"""
53-
extracted = re.search(condition_value, event_value)
53+
extracted = re.search(str(condition_value), str(event_value))
5454
if extracted is not None:
5555
return extracted.group(0)
5656

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
requests==2.20.0
2-
moesifapi==1.3.2
1+
requests==2.31.0
2+
moesifapi==1.4.1

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Versions should comply with PEP440. For a discussion on single-sourcing
2929
# the version across setup.py and the project code, see
3030
# https://packaging.python.org/en/latest/single_source_version.html
31-
version='0.3.0',
31+
version='0.3.1',
3232

3333
description='Moesif Python request',
3434
long_description=long_description,

0 commit comments

Comments
 (0)