[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:
moooyo
2025-02-19 01:28:49 +08:00
committed by GitHub
parent e33efb7f10
commit ec136d7bb7

View File

@@ -6,7 +6,7 @@
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 enumPaddingRegex(LR"(padding=(\d+))");