changeset 5251:a2dd9d03977f db-protobuf

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 08 Apr 2023 10:53:39 +0200
parents 1acd709c8772
children 1700fe5c9737
files OrthancServer/UnitTestsSources/ServerIndexTests.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/UnitTestsSources/ServerIndexTests.cpp	Sat Apr 08 10:14:09 2023 +0200
+++ b/OrthancServer/UnitTestsSources/ServerIndexTests.cpp	Sat Apr 08 10:53:39 2023 +0200
@@ -1046,8 +1046,9 @@
 {
   ASSERT_TRUE(ServerToolbox::IsValidLabel("abcdefghijklmnopqrstuvwxyz"
                                           "ABCDEFGHIJKLMNOPQRSTUVWXYZ"));
-  ASSERT_TRUE(ServerToolbox::IsValidLabel("0123456789-_."));
+  ASSERT_TRUE(ServerToolbox::IsValidLabel("0123456789-_"));
   ASSERT_FALSE(ServerToolbox::IsValidLabel(""));
   ASSERT_FALSE(ServerToolbox::IsValidLabel(" "));
   ASSERT_FALSE(ServerToolbox::IsValidLabel("&"));
+  ASSERT_FALSE(ServerToolbox::IsValidLabel("."));
 }