Correct regex

This commit is contained in:
Jan Schneider 2020-06-24 22:47:23 +02:00
parent 59666ac6fc
commit e35d61a4f6
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ proc process {} {
return [rmupdate::get_addon_info 1 1 1]
} elseif {[lindex $path 1] == "start_install_firmware"} {
regexp {\"download_url\"\s*:\s*\"([^\"]*)\"} $data match download_url
regexp {\"version\"\s*:\s*\"([\d\.\-]*)\"} $data match version
regexp {\"version\"\s*:\s*\"([a-f\d\.\-]*)\"} $data match version
regexp {\"language\"\s*:\s*\"([^\"]+)\"} $data match lang
regexp {\"reboot\"\s*:\s*(true|false)} $data match reboot
regexp {\"dryrun\"\s*:\s*(true|false)} $data match dryrun