flowershow icon indicating copy to clipboard operation
flowershow copied to clipboard

cyrillic alphabet ignores in file names

Open dipsy opened this issue 2 years ago • 0 comments
trafficstars

flowershow can't works with cyrillic file names.

content layers cuts symbols with const makeVariableName = flow(idToFileName, (_) => camelCase(_, { stripRegexp: /[^A-Z0-9\_]/gi })) in https://github.com/contentlayerdev/contentlayer/blob/9fc4ecf173fc9d526e11c7a7abeb0f3c720a0cc5/packages/%40contentlayer/core/src/generation/generate-dotpkg.ts

So we have only "md" without filename

// NOTE This file is auto-generated by Contentlayer

import indexMd from './index.md.json'
import gitLabMd from './GitLab.md.json'
import md from './тест.md.json'
import md from './тест другой.md.json'

export const allPages = [indexMd, gitLabMd, md, md]

which generates fatal error. Any chance to support cyrillic alphabet in file names?

dipsy avatar Mar 01 '23 19:03 dipsy