This commit is contained in:
Kirill Polyakov
2023-10-05 22:42:15 +03:00
parent 8bb6765e4b
commit c13b925ac5

View File

@ -150,7 +150,7 @@ namespace NSCSS
bool CUnitMeasureConverter::GetValue(const std::wstring &wsValue, double &dValue, UnitMeasure &enUnitMeasure)
{
std::wregex oRegex(LR"((\.\d+|\d+(\.\d+)?)\s*(px|pt|cm|mm|in|pc|%|em|rem)?)");
std::wregex oRegex(LR"((-?\.\d+|-?\d+(\.\d+)?)\s*(px|pt|cm|mm|in|pc|%|em|rem)?)");
std::wsmatch oMatches;
if(!std::regex_search(wsValue, oMatches, oRegex))