mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-03 17:05:54 +00:00
add test case for jsonformatter
Change array indexes from "[num]" to ".num." in path
This commit is contained in:
@ -178,8 +178,8 @@ QVariant AWJsonFormatter::getFromMap(const QVariant &value,
|
||||
void AWJsonFormatter::initPath()
|
||||
{
|
||||
m_splittedPath.clear();
|
||||
QStringList splittedByDot = m_path.split(QRegExp(QString("(\\.|\\[|\\])")),
|
||||
QString::SkipEmptyParts);
|
||||
QStringList splittedByDot
|
||||
= m_path.split(QChar('.'), QString::SkipEmptyParts);
|
||||
|
||||
for (auto &element : splittedByDot) {
|
||||
bool ok;
|
||||
|
Reference in New Issue
Block a user