Merge pull request #222 from maartenba/mb-perf-5
Micro-optimization by compiling regular expression into QuestPDF assembly
This commit is contained in:
@@ -41,7 +41,7 @@ namespace QuestPDF.Helpers
|
||||
|
||||
internal static string PrettifyName(this string text)
|
||||
{
|
||||
return Regex.Replace(text, @"([a-z])([A-Z])", "$1 $2");
|
||||
return Regex.Replace(text, @"([a-z])([A-Z])", "$1 $2", RegexOptions.Compiled);
|
||||
}
|
||||
|
||||
internal static void VisitChildren(this Element? element, Action<Element?> handler)
|
||||
|
||||
Reference in New Issue
Block a user