Whether topic contains wildcard characters in its paths.
topic
static bool isPattern(Topic topic) => topic.paths.any((path) => path.contains(single) || path.contains(tail));