Browse Source

Merge pull request #404 from oleorhagen/fix-linkbot-rpi-os

linkbot: Handle the double quote in the raspi-os image link
change-dependabot-prefix
oleorhagen 3 years ago
committed by GitHub
parent
commit
2fcf9ee057
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      scripts/linkbot/monitor-raspbian-os.js

2
scripts/linkbot/monitor-raspbian-os.js

@ -16,7 +16,7 @@ try {
var reg =
"raspios_lite_armhf-(?<date>[0-9]{4}-[0-9]{2}-[0-9]{1,2})/(?<updated>[0-9]{4}-[0-9]{2}-[0-9]{1,2}).*$";
var m = line.match(
".*: (?<url>[a-zA-Z-://._]*)(?<imageName>raspios_lite_armhf-[0-9]{4}-[0-9]{2}-[0-9]{1,2})/(?<updated>[0-9]{4}-[0-9]{2}-[0-9]{1,2}).*$"
".*: \"(?<url>[a-zA-Z-://._]*)(?<imageName>raspios_lite_armhf-[0-9]{4}-[0-9]{2}-[0-9]{1,2})/(?<updated>[0-9]{4}-[0-9]{2}-[0-9]{1,2}).*\"$"
);
console.log(m);
var url = m.groups.url;

Loading…
Cancel
Save