#given that there are matches to be made\r
if self.pattern.search(content) is not None:\r
m = self.pattern.findall(content)\r
- temp_dict[self.label] = ', '.join(m)\r
+ m_fixed = []\r
+ for match in m:\r
+ if type(match) is tuple:\r
+ matchies = set()\r
+ for sub_m in match:\r
+ matchies.add(sub_m)\r
+ m_fixed += matchies\r
+ else:\r
+ m_fixed.append(match)\r
+\r
+ temp_dict[self.label] = ', '.join(m_fixed)\r
else:\r
temp_dict[self.label] = None \r
\r