[modules/nic] Make regex for SSID a raw string

This commit is contained in:
tobi-wan-kenobi 2020-12-01 15:58:55 +01:00
parent 5fb19b66da
commit a8d1254e06

View file

@ -139,7 +139,7 @@ class Module(core.module.Module):
iw_info = util.cli.execute("{} dev {} info".format(self.iw, intf)) iw_info = util.cli.execute("{} dev {} info".format(self.iw, intf))
for line in iw_info.split("\n"): for line in iw_info.split("\n"):
match = re.match("^\s+ssid\s(.+)$", line) match = re.match(r"^\s+ssid\s(.+)$", line)
if match: if match:
return match.group(1) return match.group(1)