You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can confirm using a pattern like .*world.* works, thanks for that suggestion!
There is probably a better way than using Pattern.search, it was the first thing that came to mind :)
I would argue this is a bugfix and not a breaking change. We don't document this specifically, but I would say the expectation for "matches regex" is essentially the same way grep behaves. grep world does match hello-world-hello, and does not require adding anything else around world to match.
We have this assumption built-in to every SDK that I've checked so far.
REGEX
is implemented usingPattern.match
, which only checks the beginning of the search string:This means a regular expression like
world
will not match a trait value ofhello-world
.We should be using
Pattern.search
instead: https://docs.python.org/3.11/library/re.html#re.Pattern.searchThe text was updated successfully, but these errors were encountered: