mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-28 08:04:13 +08:00
.
This commit is contained in:
parent
8805193f5f
commit
544caa865a
@ -239,6 +239,7 @@ bool InsertCatSystem2Hook()
|
|||||||
hp.filter_fun = [](TextBuffer *buffer, HookParam *hp)
|
hp.filter_fun = [](TextBuffer *buffer, HookParam *hp)
|
||||||
{
|
{
|
||||||
auto _ = std::regex_replace(buffer->strA(), std::regex(R"(\[(.+?)/.+\])"), "$1");
|
auto _ = std::regex_replace(buffer->strA(), std::regex(R"(\[(.+?)/.+\])"), "$1");
|
||||||
|
strReplace(_, "\\@", "");
|
||||||
buffer->from(_);
|
buffer->from(_);
|
||||||
};
|
};
|
||||||
hp.lineSeparator = L"\\n";
|
hp.lineSeparator = L"\\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user