upd: version regex in deniability

This commit is contained in:
Aleksandr Menenkov 2025-08-07 17:10:46 +03:00
parent 728eb0ab1f
commit bfa38aa894
No known key found for this signature in database

View file

@ -1528,7 +1528,7 @@ func work() {
panic(err)
}
tmp, err = rsDecode(rs5, tmp)
if valid, _ := regexp.Match(`^v1\.\d{2}`, tmp); err != nil || !valid {
if valid, _ := regexp.Match(`^v\d\.\d{2}`, tmp); err != nil || !valid {
os.Remove(inputFile)
inputFile = strings.TrimSuffix(inputFile, ".tmp")
broken(nil, nil, "Password is incorrect or the file is not a volume", true)