diff --git a/README.md b/README.md index 292d032..1a90b98 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Version history --------------- 1.0.0 - Initial release, compatible with RPC version 15 (latest as of 18/08/2015) +1.0.1 - Minor bugfix (regex anchor) Description diff --git a/lib/transmission.rb b/lib/transmission.rb index 551e678..bb10590 100644 --- a/lib/transmission.rb +++ b/lib/transmission.rb @@ -214,7 +214,7 @@ def add(params={}) private :add def add_magnet(magnet_link, params={}) - if !magnet_link.match /^magnet:\?/ + if !magnet_link.match /\Amagnet:\?/ raise "This doesn't look like a magnet link to me: #{magnet_link}" end add({'filename' => magnet_link}.merge(params)) diff --git a/transmission-ng.gemspec b/transmission-ng.gemspec index 5eee94d..b7c9b67 100644 --- a/transmission-ng.gemspec +++ b/transmission-ng.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'transmission-ng' - s.version = '1.0.0' - s.date = '2015-08-18' + s.version = '1.0.1' + s.date = '2015-08-19' s.summary = "Transmission API gem" s.description = "A better API interface for the Transmission torrent client" s.authors = ["m4rkw"]