lib/kramdown/parser/kramdown/autolink.rb in kramdown-2.1.0 vs lib/kramdown/parser/kramdown/autolink.rb in kramdown-2.2.0

- old
+ new

@@ -9,11 +9,11 @@ module Kramdown module Parser class Kramdown - ACHARS = '[[:alnum:]]_' - AUTOLINK_START_STR = "<((mailto|https?|ftps?):.+?|[-.#{ACHARS}]+@[-#{ACHARS}]+(?:\.[-#{ACHARS}]+)*\.[a-z]+)>" + ACHARS = '[[:alnum:]]-_.' + AUTOLINK_START_STR = "<((mailto|https?|ftps?):.+?|[#{ACHARS}]+?@[#{ACHARS}]+?)>" AUTOLINK_START = /#{AUTOLINK_START_STR}/u # Parse the autolink at the current location. def parse_autolink start_line_number = @src.current_line_number