diff options
author | Go MAEDA <maeda@farend.jp> | 2022-10-26 13:14:08 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-10-26 13:14:08 +0000 |
commit | 47b17044d2c24eb69f6e2038d3332ffa500ca4e4 (patch) | |
tree | 805598d6095ca34222286c8a82373f7dbee6a147 /app/models/repository | |
parent | 4cbb07ba437418a2a40d64a63f8949701ab38a93 (diff) | |
download | redmine-47b17044d2c24eb69f6e2038d3332ffa500ca4e4.tar.gz redmine-47b17044d2c24eb69f6e2038d3332ffa500ca4e4.zip |
Fix RuboCop offense Style/RedundantStringEscape (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@21920 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/repository')
-rw-r--r-- | app/models/repository/subversion.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository/subversion.rb b/app/models/repository/subversion.rb index 4cafe4fa5..fa60492c1 100644 --- a/app/models/repository/subversion.rb +++ b/app/models/repository/subversion.rb @@ -51,7 +51,7 @@ class Repository::Subversion < Repository # Returns a path relative to the url of the repository def relative_path(path) - path.gsub(Regexp.new("^\/?#{Regexp.escape(relative_url)}"), '') + path.gsub(Regexp.new("^/?#{Regexp.escape(relative_url)}"), '') end def fetch_changesets |