Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openclaw/extensions/zalouser/src/   (Openclaw AI Version 22©)  Datei vom 26.3.2026 mit Größe 898 B image not shown  

Quelle  reaction.ts

  Sprache: JAVA
 

import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
import { Reactions } from "./zca-constants.js";

const REACTION_ALIAS_MAP = new Map<string, string>([
  ["like", Reactions.LIKE],
  ["��", Reactions.LIKE],
  [":+1:", Reactions.LIKE],
  ["heart", Reactions.HEART],
  ["❤️", Reactions.HEART],
  ["<3", Reactions.HEART],
  ["haha", Reactions.HAHA],
  ["laugh", Reactions.HAHA],
  ["��", Reactions.HAHA],
  ["wow", Reactions.WOW],
  ["��", Reactions.WOW],
  ["cry", Reactions.CRY],
  ["��", Reactions.CRY],
  ["angry", Reactions.ANGRY],
  ["��", Reactions.ANGRY],
]);

export function normalizeZaloReactionIcon(raw: string): string {
  const trimmed = raw.trim();
  if (!trimmed) {
    return Reactions.LIKE;
  }
  return (
    REACTION_ALIAS_MAP.get(normalizeLowercaseStringOrEmpty(trimmed)) ??
    REACTION_ALIAS_MAP.get(trimmed) ??
    trimmed
  );
}

Messung V0.5 in Prozent
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.