mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
More tweaks
This commit is contained in:
parent
ef37981592
commit
a641b64041
@ -347,6 +347,11 @@ bool CMeasure::ParseSubstitute(std::wstring buffer)
|
|||||||
|
|
||||||
if (wcscmp(word1.c_str(), word2.c_str()) != 0)
|
if (wcscmp(word1.c_str(), word2.c_str()) != 0)
|
||||||
{
|
{
|
||||||
|
if (m_RegExpSubstitute && word1.empty())
|
||||||
|
{
|
||||||
|
word1 = L"^$";
|
||||||
|
}
|
||||||
|
|
||||||
m_Substitute.push_back(word1);
|
m_Substitute.push_back(word1);
|
||||||
m_Substitute.push_back(word2);
|
m_Substitute.push_back(word2);
|
||||||
}
|
}
|
||||||
@ -423,11 +428,6 @@ std::wstring CMeasure::ExtractWord(std::wstring& buffer)
|
|||||||
|
|
||||||
buffer.erase(0, end);
|
buffer.erase(0, end);
|
||||||
|
|
||||||
if (m_RegExpSubstitute && ret.empty())
|
|
||||||
{
|
|
||||||
ret = L"^$";
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user