summaryrefslogtreecommitdiffstats
path: root/app/models/issue_import.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-10-23 00:13:38 +0000
committerGo MAEDA <maeda@farend.jp>2020-10-23 00:13:38 +0000
commitfdba424d77ef3d835f89d37f3f04840fbc2c839f (patch)
tree2cc93e4773177357bb42223840ebb3f201f5ab7e /app/models/issue_import.rb
parent5280861cf309652d0ebf64658ef9cf2563ef8745 (diff)
downloadredmine-fdba424d77ef3d835f89d37f3f04840fbc2c839f.tar.gz
redmine-fdba424d77ef3d835f89d37f3f04840fbc2c839f.zip
Use match? instead of =~ when MatchData is not used (#34150).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@20168 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_import.rb')
-rw-r--r--app/models/issue_import.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_import.rb b/app/models/issue_import.rb
index 7ab0a3642..f515eaa5e 100644
--- a/app/models/issue_import.rb
+++ b/app/models/issue_import.rb
@@ -179,7 +179,7 @@ class IssueImport < Import
else
add_callback(parent_issue_id, 'set_as_parent', item.position)
end
- elsif parent_issue_id =~ /\A\d+\z/
+ elsif /\A\d+\z/.match?(parent_issue_id)
# refers to other row by position
parent_issue_id = parent_issue_id.to_i