Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Directives\Tools

Index

Enumerations

Classes

Interfaces

Functions

Functions

extractDirectives

  • extractDirectives(text: string, regex: RegExp): Array<string>
  • Extracts directives fount in text by searching the RegExp

    Parameters

    • text: string

      full HTML code to search for comments matching directives

    • regex: RegExp

      regular expression to match

    Returns Array<string>

    All the strings of the directives found