From 373947aba36e45f2496975d2cc7c4c9f4b2c205e Mon Sep 17 00:00:00 2001 From: Mnikolenko Productengine Date: Fri, 17 Jun 2016 12:07:16 +0300 Subject: MAINT-6509 Viewer still allows you to create a group with leading spaces in the group name --- indra/llui/lltextvalidate.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indra/llui/lltextvalidate.cpp') diff --git a/indra/llui/lltextvalidate.cpp b/indra/llui/lltextvalidate.cpp index 324ceb7fba..bfe0a5bb5d 100644 --- a/indra/llui/lltextvalidate.cpp +++ b/indra/llui/lltextvalidate.cpp @@ -328,6 +328,15 @@ namespace LLTextValidate return rv; } + bool validateASCIINoLeadingSpace(const LLWString &str) + { + if (LLStringOps::isSpace(str[0])) + { + return FALSE; + } + return validateASCII(str); + } + // Used for multiline text stored on the server. // Example is landmark description in Places SP. bool validateASCIIWithNewLine(const LLWString &str) -- cgit v1.2.3