Function

Shell-18Shellutil_regex_escape

  • A wrapper around g_regex_escape_string() that takes its argument as \0-terminated string rather than a byte-array that confuses gjs.

    Parameters

    • str: string

      a UTF-8 string to escape

    Returns string

    str with all regex-special characters escaped