Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/link/remote/regex"

Index

Functions

linkRemoteRegexGet

  • linkRemoteRegexGet(): RegExp
  • Gets the global regular expression for remote links. This is used to constrain the URLs that applications can call out to. Acts as a whitelist, any URL that passes the regular expression test is allowed.

    Returns RegExp

    the regular expression that is used to validate remote URLs

linkRemoteRegexSet

  • linkRemoteRegexSet(value: RegExp): RegExp
  • Set the global regular expression for remote links. Can be used to constrain the URLs that applications can call out to. Acts as a whitelist, any URL that passes the regular expression test is allowed.

    Parameters

    • value: RegExp

      the regular expression to set

    Returns RegExp

    the previous regular expression