Skip to content

Commit

Permalink
mas: strip unprintable characters from app names
Browse files Browse the repository at this point in the history
  • Loading branch information
EricFromCanada committed Jan 21, 2025
1 parent 6a3820a commit 2ab00d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundle/mac_app_store_dumper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def apps
app_details = app.match(/\A(?<id>\d+)\s+(?<name>.*?)\s+\((?<version>[\d.]*)\)\Z/)

# Only add the application details should we have a valid match.
[app_details[:id], app_details[:name]] if app_details
[app_details[:id], app_details[:name].gsub(/[[:cntrl:]]|[\p{C}]/, '')] if app_details

Check failure on line 19 in lib/bundle/mac_app_store_dumper.rb

View workflow job for this annotation

GitHub Actions / tests (ubuntu-latest)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

Check failure on line 19 in lib/bundle/mac_app_store_dumper.rb

View workflow job for this annotation

GitHub Actions / tests (macOS-latest)

Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
end
else
[]
Expand Down

0 comments on commit 2ab00d1

Please sign in to comment.