Skip to content

Commit

Permalink
fixes #2884
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonasdan committed Dec 18, 2023
1 parent 41ee0a4 commit ece596c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/datetime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/js/utilities/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit ece596c

Please sign in to comment.