@byu-oit/vue-decision-processing-components
Advanced tools
Comparing version 5.3.2 to 5.4.0
@@ -42,1 +42,13 @@ /* | ||
} | ||
export const yearTermFormat = value => { | ||
if (!value) return value | ||
if (!/^[0-9]{4}[1345]$/.test(value)) return value | ||
const term = { | ||
'1': 'W', | ||
'3': 'Sp', | ||
'4': 'Su', | ||
'5': 'F' | ||
}[value.substr(-1)] | ||
return value.substr(0, 4).concat(term) | ||
} |
{ | ||
"name": "@byu-oit/vue-decision-processing-components", | ||
"version": "5.3.2", | ||
"version": "5.4.0", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
168122
54
47