Unverified Commit bb6d639d authored by gsn9's avatar gsn9 Committed by GitHub
Browse files

hist blob fix (#4995)



* hist blob fix

* regex fix

* clean up

* Fixes regex that was causing test failures.

Co-authored-by: default avatarAmy Stamile <astamile@usgs.gov>
parent a52dd386
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ find files of those names at the top level of this repository. **/

#include <QDebug>
#include <QString>

#include <QRegularExpression>
#include "PvlKeyword.h"
#include "IException.h"
#include "Message.h"
@@ -1585,6 +1585,14 @@ namespace Isis {
      }
    }

    // check for extraneous data in the keyword ... ,2,3
    QRegularExpression regex("^,");
    QRegularExpressionMatch match = regex.match(keyword);
    if (!keyword.isEmpty() && match.hasMatch()) {
          keywordValues.at(0).first += keyword;
          keyword = "";
    }

    /*
      If more data remains, it is unrecognized.
    */