Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="AutoLinkParser"/> class.
        /// </summary>
        public AutoLinkParser(AutoLinkOptions options)
        {
            Options = options ?? throw new ArgumentNullException(nameof(options));

            OpeningCharacters = new char[]
            {
                'h', // for http:// and https://
                'f', // for ftp://
                'm', // for mailto:
                'w', // for www.
            };
        }
Beispiel #2
0
 public AutoLinkExtension(AutoLinkOptions options)
 {
     Options = options ?? new AutoLinkOptions();
 }