replugged

    Function bySource

    • Creates a filter function that checks if a module's source code matches a given string or regular expression.

      A module source code is minified, so be aware that variable names may be obfuscated and can change between versions. To create more robust regular expressions, consider using wildcards or patterns that can accommodate such changes. The custom \i escape sequence can be used in the regular expression to match any valid identifier.

      Parameters

      • match: string | RegExp

        A string or regular expression to match against the module's source code.

      Returns (m: RawModule) => boolean

      A function for filtering modules based on their source code.

      const constantsModule = getModule(filters.bySource("users/@me/relationships"));
      
    MMNEPVFCICPMFPCPTTAAATR