Skip to main content
Module

x/deno2node/src/deps.deno.ts>RegularExpressionLiteral#setLiteralValue

Compile your Deno project to run on Node.js.
Go to Latest
method RegularExpressionLiteral.prototype.setLiteralValue
import { RegularExpressionLiteral } from "https://deno.land/x/deno2node@v1.7.1/src/deps.deno.ts";

Sets the literal value according to a pattern and some flags.

Parameters

pattern: string
  • Pattern.
optional
flags: string
  • Flags.

Sets the literal value according to a regular expression object.

Parameters

regExp: RegExp
  • Regular expression.