Skip to content

Commit

Permalink
Allow dashes in autolinks
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed Jun 19, 2011
1 parent b318b09 commit 2ea3b3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ext/rinku/autolink.c
Expand Up @@ -137,7 +137,7 @@ check_domain(char *data, size_t size)

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)
Expand Down
2 changes: 1 addition & 1 deletion lib/rinku.rb
@@ -1,5 +1,5 @@
module Rinku
VERSION = "1.2.1"
VERSION = "1.2.2"
extend self
end

Expand Down
2 changes: 1 addition & 1 deletion rinku.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'rinku'
s.version = '1.2.1'
s.version = '1.2.2'
s.summary = "Mostly autolinking"
s.description = <<-EOF
A fast and very smart autolinking library that
Expand Down
2 changes: 1 addition & 1 deletion upskirt
Submodule upskirt updated from 76fd65 to 3b0a64

0 comments on commit 2ea3b3d

Please sign in to comment.