cfv fails to detect files with trailing spaces in sfv file
Brought to you by:
donut
cfv does not detect the file names correctly if the sfv file has trailing spaces after the file name before the CRC-32 checksum. Attaching an example set of files which one can use to replicate the bug. The file contains two text files foobar and foo, their contents are "foobar" and "foo" respectively. There are two sfv files bar.sfv and foo.sfv. cfv will fail to detect the file foo in bar.sfv because of additional spaces between file name and the crc-32 checksum. cfv will correctly detect the files when foo.sfv is used.
fix in line 1670:
self.test_file(x.group(1).strip(),unhexlify(x.group(2)))
#self.test_file(x.group(1),unhexlify(x.group(2)))