This PR makes it such that storiesExtension can be a string or a RegExp. I ran into this use case while integrating with a project.
This PR also makes it such that the default value for storiesExtension will match 0 or 1 leading .. This way foo.stories.jsx and stories.jsx are matched. The use case for this is:
This PR makes it such that
storiesExtension
can be astring
or aRegExp
. I ran into this use case while integrating with a project.This PR also makes it such that the default value for
storiesExtension
will match 0 or 1 leading.
. This wayfoo.stories.jsx
andstories.jsx
are matched. The use case for this is: