ext/xhtml.c in redcarpet-1.3.1 vs ext/xhtml.c in redcarpet-1.3.2
- old
+ new
@@ -450,10 +450,10 @@
if (autolink) {
/* Autolinking is not standarized in the Markdown spec.
* We only check for links immediately after a space */
if ((i == 0 || isspace(text->data[i - 1])) &&
is_safe_link(text->data + i, text->size - i)) {
- size_t j = i + i;
+ size_t j = i;
while (j < text->size && is_uri_char(text->data[j]))
j++;
rndr_autolink2(ob, &text->data[i], j - i, MKDA_NORMAL);