summaryrefslogtreecommitdiff
path: root/indra/llui/lltextvalidate.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2016-06-17 12:07:16 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2016-06-17 12:07:16 +0300
commit373947aba36e45f2496975d2cc7c4c9f4b2c205e (patch)
tree41335f65b0ca05eff5a4aaccb839a6e7ba716e52 /indra/llui/lltextvalidate.cpp
parentaff8dcea758b4f31e320fb02369df97498e10c8b (diff)
MAINT-6509 Viewer still allows you to create a group with leading spaces in the group name
Diffstat (limited to 'indra/llui/lltextvalidate.cpp')
-rw-r--r--indra/llui/lltextvalidate.cpp9
1 files changed, 9 insertions, 0 deletions
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)