Skip to content

Commit 774254c

Browse files
committed
fix(live-example): adapt regex for matching connectors
1 parent a35082a commit 774254c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docgen/assets/js/bindRunExamples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default function bindRunExamples(codeSamples) {
143143
}
144144

145145
// initialize examples for connector, check we have the matching pattern
146-
if (/function renderFn\(\S+, isFirstRendering\) {/g.test(exampleContent)) {
146+
if (/function renderFn\(\S+(, isFirstRendering)?\) {/g.test(exampleContent)) {
147147
initConnectorExample(codeSample, index);
148148
}
149149
});

0 commit comments

Comments
 (0)