MCPcopy Index your code
hub / github.com/plotly/plotly.py / fullmatch

Function fullmatch

_plotly_utils/basevalidators.py:16–22  ·  view source on GitHub ↗

Emulate python-3.4 re.fullmatch().

(regex, string, flags=0)

Source from the content-addressed store, hash-verified

14
15# back-port of fullmatch from Py3.4+
16def fullmatch(regex, string, flags=0):
17 """Emulate python-3.4 re.fullmatch()."""
18 if "pattern" in dir(regex):
19 regex_string = regex.pattern
20 else:
21 regex_string = regex
22 return re.match("(?:" + regex_string + r")\Z", string, flags=flags)
23
24
25def to_non_numpy_type(np, v):

Callers 3

in_valuesMethod · 0.85
coerceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected