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