Skip to content

Commit a4b886c

Browse files
authored
Treat 'coloraxis1' as 'coloraxis' (#1574)
1 parent bccb4dc commit a4b886c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: _plotly_utils/basevalidators.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -1454,14 +1454,9 @@ def __init__(self, plotly_name,
14541454
self.base = dflt
14551455
else:
14561456
# e.g. regex == '/^y([2-9]|[1-9][0-9]+)?$/'
1457-
self.base = re.match('/\^(\w+)',
1458-
regex).group(1)
1457+
self.base = re.match('/\^(\w+)', regex).group(1)
14591458

1460-
if regex is not None:
1461-
# Remove leading/trailing '/' characters
1462-
self.regex = regex[1:-1]
1463-
else:
1464-
self.regex = dflt + "(\d*)"
1459+
self.regex = self.base + "(\d*)"
14651460

14661461
def description(self):
14671462

0 commit comments

Comments
 (0)