From 2b1a876f2e159747a574a571c2c44aad42508734 Mon Sep 17 00:00:00 2001 From: Grzegorz Rynkowski Date: Thu, 2 May 2013 13:27:14 +0200 Subject: [PATCH] Fix of supporting widgets with invalid app name [Issue#] TTS-1305 [Problem] wrt-installer supports widgets with invalid application name. [Cause] N/A [Solution] Change pattern for appname at config parser. [Verification] Build repo and try to install two widgets: - widget with invalid appname (expect result: fail), - widget with valid appname (expect result: success). Change-Id: I87ac56f91efbfd4bf86f72c15dbffdaacae72e47 --- src/configuration_parser/widget_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configuration_parser/widget_parser.cpp b/src/configuration_parser/widget_parser.cpp index 289e30d..6433176 100644 --- a/src/configuration_parser/widget_parser.cpp +++ b/src/configuration_parser/widget_parser.cpp @@ -1352,7 +1352,7 @@ class ApplicationParser : public ElementParser }; const char* const ApplicationParser::REGEXP_PACKAGE = "[0-9A-Za-z]{10}"; -const char* const ApplicationParser::REGEXP_ID = "([0-9A-Za-z]{10})\\..{2,52}"; +const char* const ApplicationParser::REGEXP_ID = "([0-9A-Za-z]{10})\\.[0-9A-Za-z]{2,52}"; const char* const ApplicationParser::REGEXP_VERSION = "\\d+\\.\\d+(\\.\\d+)?"; class SplashParser : public ElementParser -- 2.7.4