Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Automatic title sanitization does not support case-insensitive trailing duplicate. #25451

Closed
ksugawara61 opened this issue Jan 4, 2024 · 0 comments · Fixed by #25452
Closed

Comments

@ksugawara61
Copy link
Contributor

Describe the bug

My project story file directory structure composed lower camel case directory and upper camel case component file.
ex) button/Button.tsx, button/Button.stories.tsx

But, Automatic titles sanitization of CSF 3.0 does not support case-insenstive trailing duplicate.
Is there a way to resolve case-insensitive trailing duplicate removal?

To Reproduce

You can reproduce this by creating component and story files like button/Button.tsx,button/Button.stories.tsx under the component directory and setting automatic titles.

System

Storybook Environment Info:

  System:
    OS: macOS 13.6.1
    CPU: (12) arm64 Apple M2 Max
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 18.19.0 - ~/.nodenv/versions/18.19.0/bin/node
    Yarn: 1.22.21 - ~/.nodenv/versions/18.19.0/bin/yarn
    npm: 10.2.3 - ~/.nodenv/versions/18.19.0/bin/npm <----- active
    pnpm: 8.14.0 - ~/.nodenv/versions/18.19.0/bin/pnpm
  Browsers:
    Chrome: 120.0.6099.129
    Safari: 16.6
  npmPackages:
    @storybook/addon-actions: ^7.1.0 => 7.6.6 
    @storybook/addon-essentials: ^7.1.0 => 7.6.6 
    @storybook/addon-interactions: ^7.1.0 => 7.6.6 
    @storybook/addon-links: ^7.1.0 => 7.6.6 
    @storybook/addon-mdx-gfm: ^7.1.0 => 7.6.6 
    @storybook/addons: ^7.1.0 => 7.6.6 
    @storybook/nextjs: ^7.1.0 => 7.6.6 
    @storybook/react: ^7.1.0 => 7.6.6 
    @storybook/testing-library: ^0.2.0 => 0.2.2 
    chromatic: ^10.0.0 => 10.2.0 
    eslint-plugin-storybook: ^0.6.12 => 0.6.15 
    msw-storybook-addon: ^1.8.0 => 1.10.0 
    storybook: ^7.1.0 => 7.6.6 
    storybook-addon-performance: 0.17.1 => 0.17.1 


### Additional context

_No response_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants