Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10 from monich/valueDecode
Long sequences of numbers should be treated as strings
  • Loading branch information
Denis Zalevskiy committed Aug 14, 2014
2 parents 58fefd4 + be6fc9f commit ac5f604
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/util.cpp
Expand Up @@ -119,6 +119,7 @@ static const QString datetime_re(QString("%1T%2%3")

static const std::initializer_list<std::pair<QRegExp, QVariant::Type> > re_types
= {{re("[+-][0-9]+"), QVariant::Int}
, {re("[0-9]{11,}"), QVariant::String}
, {re("[0-9]+"), QVariant::UInt}
, {re("[+-]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)"), QVariant::Double}
, {re(date_re), QVariant::Date}
Expand Down

0 comments on commit ac5f604

Please sign in to comment.