#3150 CSV import. Also accept underscores and dashes in vector names

This commit is contained in:
Bjørn Erik Jensen 2018-07-05 14:49:50 +02:00
parent 1c28edf2cb
commit 2b58e5e7cb

View File

@ -283,7 +283,8 @@ RifEclipseSummaryAddress::SummaryVarCategory RifEclipseSummaryAddress::identifyC
{
if (quantityName.size() == 0) return RifEclipseSummaryAddress::SUMMARY_INVALID;
if (!RiaStdStringTools::containsOnlyLettersAndDigits(quantityName)) return RifEclipseSummaryAddress::SUMMARY_INVALID;
QRegExp regexp("^[A-Za-z0-9_\\-]*$");
if(!regexp.exactMatch(QString::fromStdString(quantityName))) return RifEclipseSummaryAddress::SUMMARY_INVALID;
if (quantityName.size() > 2 && quantityName[0] == 'R' && quantityName[2] == 'F')
{