Permalink
Browse files

[#1] Correctly obtain server port from config file for both ruby 1.8.…

…7 and 1.9.2
  • Loading branch information...
1 parent c592ff5 commit 6ee9d103079e9f7eca2e442bbba9935aedc299f8 @arailsdemo committed Sep 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/guard/jstd/configuration.rb
@@ -41,7 +41,7 @@ def capture_browser
def default_server_port
begin
conf = File.read(jstd_config_path)
- conf.scan(/server:.*:(\d+)$/).to_s
+ conf.match(/server:.*:(\d+)$/)[1]
rescue
'4224'
end

0 comments on commit 6ee9d10

Please sign in to comment.