( text: string, startIndex: number, endIndex: number, separator: number, )
| 229 | * @returns Index after separator and surrounding whitespace. |
| 230 | */ |
| 231 | export function consumeSeparator( |
| 232 | text: string, |
| 233 | startIndex: number, |
| 234 | endIndex: number, |
| 235 | separator: number, |
| 236 | ): number { |
| 237 | startIndex = consumeWhitespace(text, startIndex, endIndex); |
| 238 | if (startIndex < endIndex) { |
| 239 | if (ngDevMode && text.charCodeAt(startIndex) !== separator) { |
| 240 | malformedStyleError(text, String.fromCharCode(separator), startIndex); |
| 241 | } |
| 242 | startIndex++; |
| 243 | } |
| 244 | return startIndex; |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Consumes style value honoring `url()` and `""` text. |
no test coverage detected
searching dependent graphs…