(format: string)
| 135 | } |
| 136 | |
| 137 | function assertValidDateFormatLength(format: string) { |
| 138 | if (format.length > MAX_DATE_FORMAT_LENGTH) { |
| 139 | throw new RuntimeError( |
| 140 | RuntimeErrorCode.SUSPICIOUS_DATE_FORMAT, |
| 141 | ngDevMode && |
| 142 | `Date format is too long. Exceeded maximum length of ${MAX_DATE_FORMAT_LENGTH} characters.`, |
| 143 | ); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Asserts that the given date format is free from common mistakes. Throws an |
no outgoing calls
no test coverage detected
searching dependent graphs…