From 031c13a2ace448d5fa5141c031f9bf05f2dc15ee Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Sun, 15 Nov 2015 00:06:13 +0300 Subject: Fixes for new tests --- generator/osm2meta.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'generator') 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. -- cgit v1.2.3