utils: Make loader more lenient
Loaded modules tend to be unversioned, so we shouldn't enforce that they
have a version suffix.
Change-Id: I9e7a02ea841b7c0634c84718c46707f087ee86ae
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/utils.cpp b/utils.cpp
index fa2bf6a..d0a5e5e 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -35,7 +35,7 @@
bool matchBlobHandler(const std::string& filename)
{
- return std::regex_match(filename, std::regex(".+\\.so\\.\\d+$"));
+ return filename.find(".so") != std::string::npos;
}
void loadLibraries(ManagerInterface* manager, const std::string& path,