growthbook 2.0.0__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {growthbook-2.0.0/growthbook.egg-info → growthbook-2.1.0}/PKG-INFO +1 -1
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/__init__.py +1 -1
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/core.py +18 -0
- {growthbook-2.0.0 → growthbook-2.1.0/growthbook.egg-info}/PKG-INFO +1 -1
- {growthbook-2.0.0 → growthbook-2.1.0}/setup.cfg +1 -1
- {growthbook-2.0.0 → growthbook-2.1.0}/LICENSE +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/MANIFEST.in +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/README.md +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/common_types.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/growthbook.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/growthbook_client.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/plugins/__init__.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/plugins/base.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/plugins/growthbook_tracking.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/plugins/request_context.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook/py.typed +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook.egg-info/SOURCES.txt +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook.egg-info/dependency_links.txt +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook.egg-info/requires.txt +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/growthbook.egg-info/top_level.txt +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/pyproject.toml +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/setup.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/tests/conftest.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/tests/test_etag.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/tests/test_growthbook.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/tests/test_growthbook_client.py +0 -0
- {growthbook-2.0.0 → growthbook-2.1.0}/tests/test_plugins.py +0 -0
|
@@ -178,6 +178,24 @@ def evalOperatorCondition(operator, attributeValue, conditionValue, savedGroups)
|
|
|
178
178
|
return bool(r.search(attributeValue))
|
|
179
179
|
except Exception:
|
|
180
180
|
return False
|
|
181
|
+
elif operator == "$regexi":
|
|
182
|
+
try:
|
|
183
|
+
r = re.compile(conditionValue, re.IGNORECASE)
|
|
184
|
+
return bool(r.search(attributeValue))
|
|
185
|
+
except Exception:
|
|
186
|
+
return False
|
|
187
|
+
elif operator == "$notRegex":
|
|
188
|
+
try:
|
|
189
|
+
r = re.compile(conditionValue)
|
|
190
|
+
return not bool(r.search(attributeValue))
|
|
191
|
+
except Exception:
|
|
192
|
+
return False
|
|
193
|
+
elif operator == "$notRegexi":
|
|
194
|
+
try:
|
|
195
|
+
r = re.compile(conditionValue, re.IGNORECASE)
|
|
196
|
+
return not bool(r.search(attributeValue))
|
|
197
|
+
except Exception:
|
|
198
|
+
return False
|
|
181
199
|
elif operator == "$in":
|
|
182
200
|
if not type(conditionValue) is list:
|
|
183
201
|
return False
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|