Skip to content

Commit

Permalink
fix naming dir stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck ALARY committed Mar 3, 2024
1 parent 4b8a58a commit efd4a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/MainEvents/Processes/Helpers/Stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { stringNormalizeFileName, stringSlugify } from '../../Helpers/Strings.js

const
generateDirNameStory = (title, uuid, age, category) => {
return stringNormalizeFileName(category || '').substring(0, 32) + '_' + ((age || '') + '').substring(0, 32) + '_' + stringNormalizeFileName(title).substring(0, 32) + '_' + stringSlugify(uuid).substring(0, 36)
return stringNormalizeFileName(category || '').substring(0, 32) + '_' + (age === undefined ? '' : age + '').substring(0, 2) + '_' + stringNormalizeFileName(title).substring(0, 32) + '_' + stringSlugify(uuid).substring(0, 36)
},
findAgeInStoryName = (title) => {
const a = title.match(/^([0-9]{1,2})\+](.*)/)
Expand Down

0 comments on commit efd4a25

Please sign in to comment.