Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "block/node/UrlNode/index"

Index

Type aliases

UrlMatchType

UrlMatchType: object

Type declaration

  • groups: object
    • content: string
    • href: string

UrlNodeType

Variables

Const leftUrlRegExp

leftUrlRegExp: RegExp = /^(.*?)\[(?<href>https?:\/\/[^\s\]]+)\s+(?<content>[^\]]*[^\s])\](.*)$/

Const rightUrlRegExp

rightUrlRegExp: RegExp = /^(.*?)\[(?<content>[^\]]*[^\s])\s+(?<href>https?:\/\/[^\s\]]+)\](.*)$/

Const urlRegExp

urlRegExp: RegExp = /^(.*?)\[(?<href>https?:\/\/[^\s\]]+)(?<content>)\](.*)$/

Functions

Const createUrlNode

  • createUrlNode(href: string, content?: string): UrlNodeType

Const isGyazoImageUrl

  • isGyazoImageUrl(text: string): boolean

Const isImageUrl

  • isImageUrl(text: string): boolean

Const isUrl

  • isUrl(text: string): boolean

Const isUrlMatch

  • isUrlMatch(obj: any): boolean

Generated using TypeDoc