From a15f1a9e1f80848451a4e3f37a188f0e4a025f3c Mon Sep 17 00:00:00 2001 From: Amy Stamile Date: Wed, 30 Nov 2022 10:51:03 -0700 Subject: [PATCH] Fixes regex that was causing test failures. --- isis/src/base/objs/PvlKeyword/PvlKeyword.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isis/src/base/objs/PvlKeyword/PvlKeyword.cpp b/isis/src/base/objs/PvlKeyword/PvlKeyword.cpp index 93f725e43c..210dd9382c 100644 --- a/isis/src/base/objs/PvlKeyword/PvlKeyword.cpp +++ b/isis/src/base/objs/PvlKeyword/PvlKeyword.cpp @@ -1586,7 +1586,7 @@ namespace Isis { } // check for extraneous data in the keyword ... ,2,3 - QRegularExpression regex("(,*[0-9]?)?"); + QRegularExpression regex("^,"); QRegularExpressionMatch match = regex.match(keyword); if (!keyword.isEmpty() && match.hasMatch()) { keywordValues.at(0).first += keyword;