SchemeAutolinkSyntax constructor

SchemeAutolinkSyntax(
  1. Set<String> schemes
)

Implementation

SchemeAutolinkSyntax(Set<String> schemes)
  : super(
      // ends before the punctuation that closes the sentence
      '(?<![\\w/])(?:${schemes.map(RegExp.escape).join('|')})://'
      '[^\\s<>()]*[^\\s<>().,;:!?\'"]',
      caseSensitive: false,
    );