Skip to content

Commit

Permalink
fix(live-example): adapt regex for matching connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
iam4x committed May 15, 2017
1 parent a35082a commit 774254c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docgen/assets/js/bindRunExamples.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export default function bindRunExamples(codeSamples) {
}

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

0 comments on commit 774254c

Please sign in to comment.