diff --git a/src/js/datetime.ts b/src/js/datetime.ts index fb03a4621..c03c14b2b 100644 --- a/src/js/datetime.ts +++ b/src/js/datetime.ts @@ -632,7 +632,7 @@ export class DateTime extends Date { /(\[[^[\]]*])|y{1,4}|M{1,4}|d{1,4}|H{1,2}|h{1,2}|t|T|m{1,2}|s{1,2}|f{3}/g; //NOSONAR private formattingTokens = - /(\[[^[\]]*])|([-_:/.,()\s]+)|(T|t|yyyy|yy?|MM?M?M?|Do|dd?|hh?|HH?|mm?|ss?)/g; //NOSONAR is regex cannot be simplified beyond what it already is + /(\[[^[\]]*])|([-_:/.,()\s]+)|(T|t|yyyy|yy?|MM?M?M?|Do|dd?d?d?|hh?|HH?|mm?|ss?)/g; //NOSONAR is regex cannot be simplified beyond what it already is /** * Returns a list of month values based on the current locale diff --git a/src/js/utilities/errors.ts b/src/js/utilities/errors.ts index d4682a126..ddb5fafe9 100644 --- a/src/js/utilities/errors.ts +++ b/src/js/utilities/errors.ts @@ -139,7 +139,8 @@ export class ErrorMessages { customDateFormatError(message?: string) { const error = new TdError(`${this.base} Custom Date Format: ${message}`); error.code = 9; - throw error; + //throw error; + console.warn(error); } /**