Skip to content

Commit

Permalink
[dfg] Fix NRF download URL regex
Browse files Browse the repository at this point in the history
  • Loading branch information
salkinium committed Aug 27, 2023
1 parent 7cab75a commit 13ebb2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/generator/raw-data-extractor/extract-nrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

with urllib.request.urlopen(urllib.request.Request(dl_page, headers=hdr)) as response:
html = response.read().decode("utf-8")
packurl = re.search('href="(.*?nsscprodmedia.*?/nrf_mdk_.*?_gcc_bsdlicense.zip)"', html)
packurl = re.search('<span.*?>(.*?nsscprodmedia.*?/nrf_mdk_.*?_gcc_bsdlicense.zip)<', html)
packurl = packurl.group(1)

print("Downloading...", packurl)
Expand Down

0 comments on commit 13ebb2a

Please sign in to comment.