From e9deec685d7fe86da161839b501ba50e3e7bba67 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 25 May 2011 16:13:34 +0000 Subject: [PATCH] scm: bazaar: use regexp %r{} instead of // in adapter branch_conf_path(). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5900 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/scm/adapters/bazaar_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/scm/adapters/bazaar_adapter.rb b/lib/redmine/scm/adapters/bazaar_adapter.rb index ca980052c..231b4748e 100644 --- a/lib/redmine/scm/adapters/bazaar_adapter.rb +++ b/lib/redmine/scm/adapters/bazaar_adapter.rb @@ -229,7 +229,7 @@ module Redmine else bcp = path end - bcp.gsub!(/[\/\\]$/, "") + bcp.gsub!(%r{[\/\\]$}, "") if bcp bcp = File.join(bcp, ".bzr", "branch", "branch.conf") end -- 2.39.5