mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-10-22 07:21:21 +00:00
propedit: fix wrong regex from switch to PCRE2
This commit is contained in:
parent
889f327a63
commit
860a77f33c
@ -127,13 +127,13 @@ attachment_target_c::parse_spec(command_e command,
|
||||
auto offset = 0u;
|
||||
|
||||
if (ac_replace == m_command) {
|
||||
// captures: 1 2 3 4 5 6
|
||||
s_spec_re = mtx::regex::jp::Regex{"^(?:(=)?(\\d+):(.+))|(?:(name|mime-type):([^:]+):(.+))$", "i"};
|
||||
// captures: 1 2 3 4 5 6
|
||||
s_spec_re = mtx::regex::jp::Regex{"^(?:(?:(=)?(\\d+):(.+))|(?:(name|mime-type):([^:]+):(.+)))$", "i"};
|
||||
offset = 1;
|
||||
|
||||
} else if (mtx::included_in(m_command, ac_delete, ac_update))
|
||||
// captures: 1 2 3 4
|
||||
s_spec_re = mtx::regex::jp::Regex{"^(?:(=)?(\\d+))|(?:(name|mime-type):(.+))$", "i"};
|
||||
// captures: 1 2 3 4
|
||||
s_spec_re = mtx::regex::jp::Regex{"^(?:(?:(=)?(\\d+))|(?:(name|mime-type):(.+)))$", "i"};
|
||||
|
||||
else
|
||||
assert(false);
|
||||
|
Loading…
Reference in New Issue
Block a user