@byu-oit/vue-decision-processing-components 9.0.17 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,8 +90,12 @@ export default {
90
90
  formatStartDate () {
91
91
  if (!this.mission) return ''
92
92
  const yyyyMmDd = /^[0-9]{4}-([0][1-9]||[1][0-2])-([0][1-9]||[1-2][0-9]||[3][0-1])$/
93
+ const yyyyMm = /^[0-9]{4}-([0][1-9]||[1][0-2])$/
93
94
  const startMonth = this.mission.startMonth
94
- if (!startMonth || !yyyyMmDd.test(startMonth)) return ''
95
+ const yyyyMmDdResult = yyyyMmDd.test(startMonth)
96
+ const yyyyMmResult = yyyyMm.test(startMonth)
97
+ if (!startMonth || (!yyyyMmDdResult && !yyyyMmResult)) return ''
98
+ if (!yyyyMmDdResult) return dayjs(startMonth).format('YYYY/MM')
95
99
  return dayjs(startMonth).format('YYYY/MM/DD')
96
100
  },
97
101
  formatEndDate () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byu-oit/vue-decision-processing-components",
3
- "version": "9.0.17",
3
+ "version": "9.1.0",
4
4
  "description": "Vue components shared between decision processing systems for the CES schools.",
5
5
  "dependencies": {
6
6
  "@fortawesome/fontawesome-free": "^5.15.4",