Ticket #4534 (new defect) — at Initial Version
mc.ext.ini conversion - incorrect escaping in the Regex section
Reported by: | fedy | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | mc-config-ini | Version: | master |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Branch state: | no branch | Votes for changeset: |
Description
It looks like in mc version 4.8.31 the mc.ext.ini file's Regex= expressions needs double escaping of the special characters (like .)
For example for mp4 videos the (auto generated) default is:
[mp4]
Regex=
.(mp4|m4v|mpe?g)$
Probably as a result of an automatic conversion of this file from previous format I ended up with a config where the . in Regexes are prepended with just a single \. That result in most setting using Regex just not working. Newly generated mc.ext.ini contains double escaped Regexes like above and works just fine, but all previous user customization are lost.
Not sure if the need for double escaping was intended, but there seems to be a mismatch between the currently required format and the format produced by the conversion.