Skip to content

Commit

Permalink
fix(CocoaPods): Restrict package name match to full matches
Browse files Browse the repository at this point in the history
The 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.

Signed-off-by: ksg97031 <[email protected]>
  • Loading branch information
ksg97031 committed Sep 21, 2023
1 parent c3f2108 commit c341ba2
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 c341ba2

Please sign in to comment.