Skip to content

Restore AppListFormatter#339

Merged
phatblat merged 1 commit intomasterfrom
restore-list-format
Mar 29, 2021
Merged

Restore AppListFormatter#339
phatblat merged 1 commit intomasterfrom
restore-list-format

Conversation

@phatblat
Copy link
Member

@phatblat phatblat commented Mar 28, 2021

Regressed in 83a1da9 which undid #278. So, it appears that this improvement never made it out in v1.8.0. 😕

Affects #298

Found while reviewing #334

chris-araman
chris-araman previously approved these changes Mar 28, 2021
@phatblat phatblat force-pushed the restore-list-format branch 2 times, most recently from e6d18e9 to c020fab Compare March 29, 2021 01:44
@phatblat phatblat force-pushed the restore-list-format branch from c020fab to 5fd2876 Compare March 29, 2021 01:53
@phatblat phatblat merged commit 8c9ed9a into master Mar 29, 2021
@phatblat phatblat deleted the restore-list-format branch March 29, 2021 02:05
@phatblat phatblat added this to the Unreleased milestone Mar 29, 2021
emilazy added a commit to emilazy/homebrew-bundle that referenced this pull request Apr 27, 2021
This fixes parsing with the format used after the merge of
mas-cli/mas#339:

    emily@yuyuko ~> mas list
    1440147259  AdGuard for Safari  (1.9.13)
    497799835   Xcode               (12.5)
    425424353   The Unarchiver      (4.3.1)
    …

Before:

    irb(main):002:0> app.match(/\A(?<id>\d+)\s+(?<name>.*)\s+\((?<version>[\d.]*)\)\Z/)
    => #<MatchData "1440147259  AdGuard for Safari  (1.9.13)" id:"1440147259" name:"AdGuard for Safari " version:"1.9.13">

After:

    irb(main):003:0> app.match(/\A(?<id>\d+)\s+(?<name>.*?)\s+\((?<version>[\d.]*)\)\Z/)
    => #<MatchData "1440147259  AdGuard for Safari  (1.9.13)" id:"1440147259" name:"AdGuard for Safari" version:"1.9.13">
emilazy added a commit to emilazy/homebrew-bundle that referenced this pull request Apr 27, 2021
This fixes parsing with the format used after the merge of
mas-cli/mas#339:

    emily@yuyuko ~> mas list
    1440147259  AdGuard for Safari  (1.9.13)
    497799835   Xcode               (12.5)
    425424353   The Unarchiver      (4.3.1)
    …

Before:

    irb(main):002:0> app.match(/\A(?<id>\d+)\s+(?<name>.*)\s+\((?<version>[\d.]*)\)\Z/)
    => #<MatchData "1440147259  AdGuard for Safari  (1.9.13)" id:"1440147259" name:"AdGuard for Safari " version:"1.9.13">

After:

    irb(main):003:0> app.match(/\A(?<id>\d+)\s+(?<name>.*?)\s+\((?<version>[\d.]*)\)\Z/)
    => #<MatchData "1440147259  AdGuard for Safari  (1.9.13)" id:"1440147259" name:"AdGuard for Safari" version:"1.9.13">

Fixes Homebrew#952.
@phatblat phatblat modified the milestones: Unreleased, 1.8.2 Oct 19, 2021
@rgoldberg rgoldberg changed the title 🐛 Restore AppListFormatter Restore AppListFormatter Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants