@byu-oit/vue-decision-processing-components
Advanced tools
Comparing version 5.21.0 to 5.21.1
@@ -54,1 +54,13 @@ /* | ||
} | ||
export const yearTermLongFormat = value => { | ||
if (!value) return value | ||
if (!/^[0-9]{4}[1345]$/.test(value)) return value | ||
const term = { | ||
'1': 'Winter', | ||
'3': 'Spring', | ||
'4': 'Summer', | ||
'5': 'Fall' | ||
}[value.substr(-1)] | ||
return `${term} ${value.substr(0, 4)}` | ||
} |
{ | ||
"name": "@byu-oit/vue-decision-processing-components", | ||
"version": "5.21.0", | ||
"version": "5.21.1", | ||
"description": "Vue components shared between decision processing systems for the CES schools.", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
211258
86