Skip to content

Commit

Permalink
feat: export PERIOD_TYPE_REGEX
Browse files Browse the repository at this point in the history
  • Loading branch information
BRaimbault committed Dec 6, 2024
1 parent 6b591a8 commit 832238a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/PeriodDimension/utils/fixedPeriods.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
FYAPR,
} from './index.js'

const PERIOD_TYPE_REGEX = {
export const PERIOD_TYPE_REGEX = {
[DAILY]: /^([0-9]{4})([0-9]{2})([0-9]{2})$/, // YYYYMMDD
[WEEKLY]: /^([0-9]{4})()W([0-9]{1,2})$/, // YYYY"W"[1-53]
[BIWEEKLY]: /^([0-9]{4})BiW([0-9]{1,2})$/, // YYYY"BiW"[1-27]
Expand Down
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ export {
getRelativePeriodsName,
getRelativePeriodsDetails,
} from './components/PeriodDimension/utils/relativePeriods.js'
export { getFixedPeriodsOptionsById } from './components/PeriodDimension/utils/fixedPeriods.js'
export {
getFixedPeriodsOptionsById,
PERIOD_TYPE_REGEX,
} from './components/PeriodDimension/utils/fixedPeriods.js'

export { default as VisualizationOptions } from './components/Options/VisualizationOptions.js'

Expand Down

0 comments on commit 832238a

Please sign in to comment.