Skip to content

Commit

Permalink
sub -> gsub
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Nov 25, 2015
1 parent 7e41969 commit ab1c21e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/awspec/generator/spec/route53_hosted_zone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def generate_by_domain_name(id)
end

def generate_linespec(record_set)
name = record_set.name.sub(/\\052/, '*') # wildcard support
name = record_set.name.gsub(/\\052/, '*') # wildcard support
if !record_set.resource_records.empty?
template = <<-'EOF'
it { should have_record_set('<%= name %>').<%= type %>('<%= v %>').ttl(<%= record_set.ttl %>) }
Expand Down
2 changes: 1 addition & 1 deletion lib/awspec/type/route53_hosted_zone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize(id)
end

def has_record_set?(name, type, value, options = {})
name.sub!(/\*/, '\\\052') # wildcard support
name.gsub!(/\*/, '\\\052') # wildcard support
ret = @resource_record_sets.find do |record_set|
next if record_set.type != type.upcase
options[:ttl] = record_set.ttl unless options[:ttl]
Expand Down

0 comments on commit ab1c21e

Please sign in to comment.