diff --git a/Library/Homebrew/bundle/mac_app_store_dumper.rb b/Library/Homebrew/bundle/mac_app_store_dumper.rb index 1c2d228e65..baf2606007 100644 --- a/Library/Homebrew/bundle/mac_app_store_dumper.rb +++ b/Library/Homebrew/bundle/mac_app_store_dumper.rb @@ -22,7 +22,7 @@ module Homebrew # Strip unprintable characters if app_details name = T.must(app_details[:name]) - [T.must(app_details[:id]), name.gsub(/[[:cntrl:]]|[\p{C}]/, "")] + [T.must(app_details[:id]), name.gsub(/[[:cntrl:]]|\p{C}/, "")] end end else diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 98af7df840..d08fedd671 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -599,7 +599,7 @@ module Homebrew end\s /x - leading_spaces = T.must(formula.path.read.match(/^([ ]+)resource "#{resource.name}"/)).captures.first + leading_spaces = T.must(formula.path.read.match(/^( +)resource "#{resource.name}"/)).captures.first new_resource_block = <<~EOS #{leading_spaces}resource "#{resource.name}" do #{leading_spaces} url "#{new_url}"#{new_mirrors.map { |m| "\n#{leading_spaces} mirror \"#{m}\"" }.join} diff --git a/Library/Homebrew/manpages/parser/ronn.rb b/Library/Homebrew/manpages/parser/ronn.rb index 36cddd6111..e05db13797 100644 --- a/Library/Homebrew/manpages/parser/ronn.rb +++ b/Library/Homebrew/manpages/parser/ronn.rb @@ -22,7 +22,7 @@ module Homebrew end # HTML-like tags denote variables instead, except
. - VARIABLE_REGEX = /<([\w\-\|]+)>/ + VARIABLE_REGEX = /<([\w\-|]+)>/ def parse_variable start_line_number = @src.current_line_number @src.scan(VARIABLE_REGEX)