Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zverev <zverik@textual.ru>2015-11-15 00:06:13 +0300
committerIlya Zverev <zverik@textual.ru>2015-11-15 01:02:29 +0300
commit031c13a2ace448d5fa5141c031f9bf05f2dc15ee (patch)
treee3ac26a6fdf10e6842fd197c308d803628d71a9e /generator
parent9bc8a7b12977a3c61ac432ae7286b9b24fe72537 (diff)
Fixes for new tests
Diffstat (limited to 'generator')
-rw-r--r--generator/osm2meta.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/osm2meta.cpp b/generator/osm2meta.cpp
index 985c20a5c3..8a6c3096ce 100644
--- a/generator/osm2meta.cpp
+++ b/generator/osm2meta.cpp
@@ -27,7 +27,7 @@ string MetadataTagProcessor::ValidateAndFormat_wikipedia(string v) const
return v.substr(slashIndex + 1, baseIndex - slashIndex - 1) + ":" + title;
}
}
- LOG(LWARNING, ("Invalid Wikipedia tag value:", v));
+ LOG(LINFO, ("Invalid Wikipedia tag value:", v));
return string();
}
// Standard case: "lang:Article Name With Spaces".
@@ -35,13 +35,13 @@ string MetadataTagProcessor::ValidateAndFormat_wikipedia(string v) const
auto const colonIndex = v.find(':');
if (colonIndex == string::npos || colonIndex < 2 || colonIndex + 2 > v.size())
{
- LOG(LWARNING, ("Invalid Wikipedia tag value:", v));
+ LOG(LINFO, ("Invalid Wikipedia tag value:", v));
return string();
}
// Check if it's not a random/invalid link.
- if (v.find('/') != string::npos)
+ if (v.find("//") != string::npos)
{
- LOG(LWARNING, ("Invalid Wikipedia tag value:", v));
+ LOG(LINFO, ("Invalid Wikipedia tag value:", v));
return string();
}
// Normalize to OSM standards.