about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-26 15:28:08 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-26 15:28:08 +0100
commitf16b31f0773c2fd1122ff0ad98cb392e762f0d0b (patch)
tree24880b7ee107288e7acb540011281569e8502e96 /app/helpers
parent44c5958203dd8d0f96f880a8014a3233719077a6 (diff)
Adding a bunch of tests
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 7a74a4d96..4c65a78bb 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -6,8 +6,8 @@ module ApplicationHelper
   end
 
   def unique_tag_to_local_id(tag, expected_type)
-    Regexp.new("objectId=([\d]+):objectType=#{expected_type}").match(tag)
-    return match[1] unless match.nil?
+    matches = Regexp.new("objectId=([\\d]+):objectType=#{expected_type}").match(tag)
+    return matches[1] unless matches.nil?
   end
 
   def local_id?(id)