Skip to content

Commit

Permalink
Upgrade regexp_parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Oct 11, 2023
1 parent f3a119b commit f7113bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PATH
mutant (0.11.23)
diff-lcs (~> 1.3)
parser (~> 3.2.2, >= 3.2.2.4)
regexp_parser (~> 2.6.1)
regexp_parser (~> 2.8.2)
sorbet-runtime (~> 0.5.0)
unparser (~> 0.6.9)

Expand All @@ -27,7 +27,7 @@ GEM
racc
racc (1.7.1)
rainbow (3.1.1)
regexp_parser (2.6.2)
regexp_parser (2.8.2)
rexml (3.2.6)
rspec (3.12.0)
rspec-core (~> 3.12.0)
Expand Down
2 changes: 1 addition & 1 deletion lib/mutant/mutator/regexp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def emit_removal
end

def emit_replacement
new_text = MAP[input.quantifier.text]
new_text = MAP[input.quantifier.text] or return

emit(mk_dup.tap { |new| new.quantifier.text = new_text })
end
Expand Down
2 changes: 1 addition & 1 deletion mutant.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |gem|

gem.add_runtime_dependency('diff-lcs', '~> 1.3')
gem.add_runtime_dependency('parser', '~> 3.2.2', '>= 3.2.2.4')
gem.add_runtime_dependency('regexp_parser', '~> 2.6.1')
gem.add_runtime_dependency('regexp_parser', '~> 2.8.2')
gem.add_runtime_dependency('sorbet-runtime', '~> 0.5.0')
gem.add_runtime_dependency('unparser', '~> 0.6.9')

Expand Down

0 comments on commit f7113bf

Please sign in to comment.