mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
lowercase time string before beginning to parse
This commit is contained in:
@@ -112,6 +112,8 @@ function inferSeparators(value: string, isAM: boolean, isPM: boolean) {
|
||||
* @returns {number} - time string in millis
|
||||
*/
|
||||
export const forgivingStringToMillis = (value: string): number => {
|
||||
value = value.toLowerCase();
|
||||
|
||||
if (value === '12am' || value === '12a') {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user