ext/rinku/autolink.c in rinku-1.2.1 vs ext/rinku/autolink.c in rinku-1.2.2

- old
+ new

@@ -135,10 +135,10 @@ if (!isalnum(data[0])) return 0; for (i = 1; i < size - 1; ++i) { if (data[i] == '.') np++; - else if (!isalnum(data[i])) break; + else if (!isalnum(data[i]) && data[i] != '-') break; } if (!isalnum(data[i - 1]) || np == 0) return 0;