Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "parse"

Index

Type aliases

AstObject

AstObject: string | TemplateObject

TagType

TagType: "r" | "e" | "i" | ""

Variables

doubleQuoteReg

doubleQuoteReg: RegExp = /"(?:\\[\s\w"'\\`]|[^\n\r"\\])*?"/g

singleQuoteReg

singleQuoteReg: RegExp = /'(?:\\[\s\w"'\\`]|[^\n\r'\\])*?'/g

templateLitReg

templateLitReg: RegExp = /`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})*}|(?!\${)[^\\`])*`/g

Functions

escapeRegExp

  • escapeRegExp(string: string): string
  • Escape special regular expression characters inside a string

    Parameters

    • string: string

    Returns string

parse

Generated using TypeDoc