summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-18 14:30:57 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commitdc023f046636f8abb44dab521a8eb74c9f1f7769 (patch)
treeaa58c69ea6d96792a1b7b3896b37e9c72bb74f8d /signal-composer-binding/signal.cpp
parentc7d508ecd4c57b1f8f372f4e5042d834b7f42ff4 (diff)
Match signal if name found in source signal.
Change-Id: Ia080cddac3973998a2dc8f8a143489298d6c8504 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal.cpp')
-rw-r--r--signal-composer-binding/signal.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/signal-composer-binding/signal.cpp b/signal-composer-binding/signal.cpp
index dfa3d5f..673295a 100644
--- a/signal-composer-binding/signal.cpp
+++ b/signal-composer-binding/signal.cpp
@@ -57,6 +57,7 @@ bool Signal::operator ==(const std::string& aName) const
for( const std::string& src : signalSigList_)
{
if(! fnmatch(aName.c_str(), src.c_str(), FNM_CASEFOLD)) {return true;}
+ if( src.find(aName) != std::string::npos) {return true;}
}
return false;
}