Prepare CMakeLists.txt format detector

This commit is contained in:
ema
2025-07-09 03:47:10 +08:00
parent e035153642
commit 7a11127b09
5 changed files with 39 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ using System.Text.RegularExpressions;
namespace QuickLook.Plugin.TextViewer.Detectors;
public class XMLDetector : IFormatDetector
public sealed class XMLDetector : IFormatDetector
{
internal Regex Signature { get; } = new(@"<\?xml\b[^>]*\bversion\s*=\s*""[^""]*""[^\?>]*\?>", RegexOptions.IgnoreCase);