mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 02:36:19 +02:00
[PowerRename] Fix negative enumerate start parameter parse bug. (#37375)
Fix reg bug to make PowerRename accept negative number as start parameter Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
std::vector<EnumOptions> parseEnumOptions(const std::wstring& replaceWith)
|
std::vector<EnumOptions> parseEnumOptions(const std::wstring& replaceWith)
|
||||||
{
|
{
|
||||||
static const std::wregex enumStartRegex(LR"(start=(\d+))");
|
static const std::wregex enumStartRegex(LR"(start=(-?\d+))");
|
||||||
static const std::wregex enumIncrementRegex(LR"(increment=(-?\d+))");
|
static const std::wregex enumIncrementRegex(LR"(increment=(-?\d+))");
|
||||||
static const std::wregex enumPaddingRegex(LR"(padding=(\d+))");
|
static const std::wregex enumPaddingRegex(LR"(padding=(\d+))");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user