rockymeza/wifi

Does not handle networks named with '-'

Closed this issue · 2 comments

I'm pretty sure the following regex from scheme.py doesn't handle multiple '-' characters:

scheme_re = re.compile(r'iface\s+(?P<interface>wlan\d?)(?:-(?P<name>\w+))?')

For example, Scheme.find("wlan0", "WOOP-DOOP") will never find anything.

Try this instead:
iface\s+(?Pwlan\d?)(?:-(?P[-\w]+))?

Hi. Sorry for taking forever. I think this should be fixed 0.3.7