Making a variable const

This commit is contained in:
elitsa
2018-12-18 11:34:50 +01:00
parent 8518aaf4c1
commit d7696e8d91

View File

@@ -540,7 +540,7 @@ namespace Umbraco.Core
/// <returns>Returns the string without any html tags.</returns>
public static string StripHtml(this string text)
{
string pattern = "[*{}\\/:<>?|\"-+()\\n]";
const string pattern = "[*{}\\/:<>?|\"-+()\\n]";
return Regex.Replace(text, pattern, String.Empty);
}