lib/optimiser/dependency_builder.rb in rubyfromexcel-0.0.13 vs lib/optimiser/dependency_builder.rb in rubyfromexcel-0.0.16
- old
+ new
@@ -28,14 +28,14 @@
def named_reference(name)
dependencies_for reference_for_name(name)
end
def dependencies_for(full_reference)
- return [] unless full_reference =~ /(sheet\d+)\.(.*)/
+ return [] unless full_reference =~ /^(sheet\d+)\.(.*)$/
sheet_name, reference = $1, $2
using_worksheet(sheet_name) do
case reference
- when /a\('(.*?)','(.*?)'\)/; area($1,$2)
+ when /^a\('(.*?)','(.*?)'\)$/; area($1,$2)
else; self.dependencies << full_reference
end
end
end
\ No newline at end of file