edgeport - v1.0.6
    Preparing search index...

    Function unescapeTagValue

    • Unescapes a tag value read from the wire per the IRCv3 message-tags spec.

      Reverses escapeTagValue: \: -> ;, \s -> space, \\ -> \, \r -> CR, \n -> LF. An unrecognized escape drops the backslash and keeps the following character; a trailing lone backslash is dropped.

      Parameters

      • value: string

        The escaped tag value.

      Returns string

      The decoded literal value.

      1.0.4

      import { unescapeTagValue } from 'edgeport/irc';

      unescapeTagValue('a\\:b\\sc'); // 'a;b c'