mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:51:48 +08:00
feat: allow upercase path names in url query param (#8516)
feat: allow upercase path names in url query param
This commit is contained in:
commit
532da44e5d
@ -46,7 +46,11 @@ export const parsePath: (path?: string) => StoryData = memoize(1000)(
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (path) {
|
if (path) {
|
||||||
const [, viewMode, storyId] = path.match(splitPathRegex) || [undefined, undefined, undefined];
|
const [, viewMode, storyId] = path.toLowerCase().match(splitPathRegex) || [
|
||||||
|
undefined,
|
||||||
|
undefined,
|
||||||
|
undefined,
|
||||||
|
];
|
||||||
if (viewMode) {
|
if (viewMode) {
|
||||||
Object.assign(result, {
|
Object.assign(result, {
|
||||||
viewMode,
|
viewMode,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user