(client: any, peer: any)
| 389 | out.color = out.backgroundColor; |
| 390 | i++; |
| 391 | } |
| 392 | continue; |
| 393 | } |
| 394 | if (isColorToken(arg)) { |
| 395 | out.backgroundColor = normalizeColorToken(arg); |
| 396 | out.color = out.backgroundColor; |
| 397 | continue; |
| 398 | } |
| 399 | |
| 400 | // emoji brand |
| 401 | if (QUOTE_EMOJI_BRANDS.has(lower)) { |
| 402 | out.emojiBrand = lower; |
| 403 | continue; |
| 404 | } |
| 405 | const brandEq = lower.match(/^(?:emoji|brand)[=:]([a-z]+)$/); |
| 406 | if (brandEq && QUOTE_EMOJI_BRANDS.has(brandEq[1])) { |
| 407 | out.emojiBrand = brandEq[1]; |
| 408 | continue; |
| 409 | } |
| 410 | |
| 411 | const n = Number.parseInt(arg, 10); |
| 412 | if (!Number.isNaN(n) && /^[-+]?\d+$/.test(arg)) { |
no test coverage detected