-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pod search
and lib lint
are not working with a pod that contains "+" in its name anymore (since 0.34)
#188
Comments
@fcy are you running CocoaPods 0.34.2? |
@segiddins yes |
@fcy the issue with |
Is this closed as won't fix? It is not just Being a regex I should be able to scape "+" which doesn't work:
|
try enclosing the query in quotes. Can you please provide more details on what's wrong with the behavior of |
Enclosing it in quotes worked. Be right back with a public sample that reproduces the problem with |
@segiddins turns the My 2 cents on the "+" issue, there are a lot of pods that contains it. I think |
@fcy escaping |
@segiddins I agree with @fcy : we have a lot of pods with My suggestion:
I have to admit that only a few of us use the regex ability when using |
I agree with @fcy and @AliSoftware on this. |
BTW why is this issue in CocoaPods/Core? |
@AliSoftware It does belong in CocoaPods. Feel free to move it over. |
Note that I'll also modify --- a/lib/cocoapods/command/spec.rb
+++ b/lib/cocoapods/command/spec.rb
@@ -338,7 +338,7 @@ module Pod
# @return [Pathname] the absolute path or paths of the given podspec
#
def get_path_of_spec(spec, show_all = false)
- sets = SourcesManager.search_by_name(spec)
+ sets = SourcesManager.search_by_name(Regexp.escape(spec)) |
Closing this as the PR to fix this is ready to be merged. |
I've a private pod that I use to override a macro in an existing public pod, so to differentiate I added "+Logger" to it. It was working flawlessly until I updated to 0.34.2 (not sure if happens on 0.34.1).
But if I remove the suffix
pod search
finds the pod:The text was updated successfully, but these errors were encountered: