Skip to content

Commit b7997c2

Browse files
committed
Merge pull request #411 from fluke777/replace_fix
Fixed interpolating the values. By adding brackets we are forcing only f...
2 parents ed8bc53 + 05456d8 commit b7997c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/gooddata/models/metadata/metric.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def replace(what, for_what = nil)
192192
pairs.each do |a, b|
193193
uri_what = a.respond_to?(:uri) ? a.uri : a
194194
uri_for_what = b.respond_to?(:uri) ? b.uri : b
195-
self.expression = expression.gsub(uri_what, uri_for_what)
195+
self.expression = expression.gsub("[#{uri_what}]", "[#{uri_for_what}]")
196196
end
197197
self
198198
end

0 commit comments

Comments
 (0)