I've added the ability to support filenames with a period in the name, such as Dr. Mario 64.z64 -> Dr. Mario 64 as the shortcut name in Steam as in issue #364. The current behaviour was to stop processing at the first instance of a period, or parens, yielding Dr.
We just use os.path.splitext on the base filename to remove the extension if it exists, and then process the result as usual with the exception of keeping the periods. Two test cases are added.
I've added the ability to support filenames with a period in the name, such as Dr. Mario 64.z64 -> Dr. Mario 64 as the shortcut name in Steam as in issue #364. The current behaviour was to stop processing at the first instance of a period, or parens, yielding Dr.
We just use
os.path.splitext
on the base filename to remove the extension if it exists, and then process the result as usual with the exception of keeping the periods. Two test cases are added.