Skip to content

Commit

Permalink
Merge pull request #544 from viktory683/iwconfig-fix
Browse files Browse the repository at this point in the history
Iwconfig fix
  • Loading branch information
kellyjonbrazil authored Feb 14, 2024
2 parents 6275591 + b8f7ddc commit bfa99d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jc/parsers/iwconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def parse(

raw_output: List[Dict] = []

re_interface = re.compile(r'^(?P<name>[a-zA-Z0-9:._\-]+)\s+(?P<protocol>([a-zA-Z0-9]+\s)*[a-zA-Z0-9.]+)\s+ESSID:\"(?P<essid>[a-zA-Z0-9:._\s\-]+)\"')
re_interface = re.compile(r'^(?P<name>[a-zA-Z0-9:._\-]+)\s+(?P<protocol>([a-zA-Z0-9]+\s)*[a-zA-Z0-9.]+)\s+ESSID:\"(?P<essid>[a-zA-Z0-9:._\s\-^!#%&\'()*,/:;<>@`{|}~]+)\"')
re_mode = re.compile(r'Mode:(?P<mode>\w+)')
re_frequency = re.compile(r'Frequency:(?P<frequency>[0-9.]+)\s(?P<frequency_unit>\w+)')
re_access_point = re.compile(r'Access Point:\s*(?P<access_point>[0-9A-F:]+)')
Expand Down

0 comments on commit bfa99d9

Please sign in to comment.