We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed8bc53 + 05456d8 commit b7997c2Copy full SHA for b7997c2
1 file changed
lib/gooddata/models/metadata/metric.rb
@@ -192,7 +192,7 @@ def replace(what, for_what = nil)
192
pairs.each do |a, b|
193
uri_what = a.respond_to?(:uri) ? a.uri : a
194
uri_for_what = b.respond_to?(:uri) ? b.uri : b
195
- self.expression = expression.gsub(uri_what, uri_for_what)
+ self.expression = expression.gsub("[#{uri_what}]", "[#{uri_for_what}]")
196
end
197
self
198
0 commit comments