Skip to content

Commit

Permalink
Merge pull request #431 from mi-reu/fix/kor-name-file
Browse files Browse the repository at this point in the history
fix: Change korean file name build result
  • Loading branch information
schickling authored Apr 24, 2023
2 parents 7fae4c5 + d52e58f commit 4f08b37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export { default as ${dataVariableName} } from './${idToFileName(documentId)}.js
`
}

const makeVariableName = flow(idToFileName, (_) => camelCase(_, { stripRegexp: /[^A-Z0-9\_]/gi }))
const makeVariableName = flow(idToFileName, (_) => camelCase(_, { stripRegexp: /[^A-Z0-9-\_]/gi }))

const docImports = documentIds
.map((_) => `import ${makeVariableName(_)} from './${idToFileName(_)}.json'${assertStatement}`)
Expand Down

0 comments on commit 4f08b37

Please sign in to comment.