From bf7494017f5d90624243e5069dea9342c6b1869c Mon Sep 17 00:00:00 2001 From: Lynx Linden Date: Mon, 21 Dec 2009 15:49:52 +0000 Subject: EXT-3486: Support SLapps and URLs in the nav bar. If the user enters a string into the navigation bar that is not recognized as an SL location, the behavior is now: - handle any secondlife:// SLapps, or - open any http: or https: URLs in the media browser, or - otherwise, send the text to the search floater --- indra/llui/llurlregistry.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indra/llui/llurlregistry.h') diff --git a/indra/llui/llurlregistry.h b/indra/llui/llurlregistry.h index d7800d8cfc..399ee0a988 100644 --- a/indra/llui/llurlregistry.h +++ b/indra/llui/llurlregistry.h @@ -85,6 +85,10 @@ public: bool hasUrl(const std::string &text); bool hasUrl(const LLWString &text); + // return true if the given string is a URL that findUrl would match + bool isUrl(const std::string &text); + bool isUrl(const LLWString &text); + private: LLUrlRegistry(); friend class LLSingleton; -- cgit v1.2.3