Trailing period not replaced if preceding a dash in renaming

System info:
Version: 4.0.14.2939
Package Version: 4.0.14.2939-ls276 by linuxserver.io
.NET: Yes (6.0.13)
Docker: Yes
Database: Sqlite 3.48.0

Description of issue:
Previously, the preceding . before - in renaming would be removed. For example, with:

{Series.CleanTitleYear}.s{season:00}e{episode:00}.{Episode.CleanTitle}.{Quality.Title}.{MediaInfo.Simple}.{MediaInfo.VideoDynamicRangeType}-{Release.Group}

The resulting file name would be:
The.Series.Title's!.2010.s01e01.Episode.Title.1.WEBDL-1080p.AVC.DTS-RlsGrp

However, now renaming keeps the final period before the dash, so the filename is:
The.Series.Title's!.2010.s01e01.Episode.Title.1.WEBDL-1080p.AVC.DTS.-RlsGrp (with .-).

It would be preferred to have that final period not included and to just have the dash.

Conditionally adding the separator should solve this:

{Series.CleanTitleYear}.s{season:00}e{episode:00}.{Episode.CleanTitle}.{Quality.Title}.{MediaInfo.Simple}{.MediaInfo.VideoDynamicRangeType}-{Release.Group}
1 Like