Rock.ExtensionMethods.HasMergeFields C# (CSharp) Method

HasMergeFields() public static method

Determines whether the string potentially has merge fields in it. NOTE: Might return true even though it doesn't really have merge fields, but something like looks like it. For example '{56408602-5E41-4D66-98C7-BD361CD93AED}'
public static HasMergeFields ( this content ) : bool
content this The content.
return bool
        public static bool HasMergeFields( this string content )
        {
            if ( content == null )
                return false;

            // If there's no merge codes, just return the content
            if (!hasLavaMergeFields.IsMatch( content ))
                return false;

            return true;
        }