Skip to content

Commit

Permalink
fix(CocoaPods): Restrict package name matching to full matches
Browse files Browse the repository at this point in the history
Both the default and the regex query string matching logic actually match
substrings case-insensitively. So if a package name is a substring of
another package name, invalid matches could occur. To circumvent that,
force the regex to be a full match.

Fixes #7543.

Signed-off-by: ksg97031 <[email protected]>
  • Loading branch information
ksg97031 authored and sschuberth committed Sep 21, 2023
1 parent 0b04df0 commit c599e39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class CocoaPods(

val podspecCommand = runCatching {
run(
"spec", "which", podspecName,
"spec", "which", "^$podspecName$",
"--version=${id.version}",
"--allow-root",
"--regex",
Expand Down

0 comments on commit c599e39

Please sign in to comment.