@@ -4,35 +4,25 @@ namespace Blogifier.Helper;
44
55public static partial class StringHelper
66{
7-
87 [ GeneratedRegex ( "<script[^>]*>[\\ s\\ S]*?</script>" , RegexOptions . Compiled ) ]
98 private static partial Regex HtmlScriptGeneratedRegex ( ) ;
109 public static string RemoveHtmlScriptTags ( string input ) => HtmlScriptGeneratedRegex ( ) . Replace ( input , string . Empty ) ;
1110
12-
1311 [ GeneratedRegex ( "<img[^>]*>[\\ s\\ S]*?>" , RegexOptions . Compiled ) ]
1412 private static partial Regex HtmlImgGeneratedRegex ( ) ;
1513 public static string RemoveHtmlImgTags ( string input ) => HtmlImgGeneratedRegex ( ) . Replace ( input , string . Empty ) ;
1614
17-
1815 [ GeneratedRegex ( "<img.+?src=[\" '](.+?)[\" '].+?>" , RegexOptions . Compiled ) ]
19- private static partial Regex HtmlImgSrcGeneratedRegex ( ) ;
20- public static Match MatchHtmlImgSrc ( string input ) => HtmlImgSrcGeneratedRegex ( ) . Match ( input ) ;
16+ public static partial Regex HtmlImgSrcGeneratedRegex ( ) ;
2117
2218 [ GeneratedRegex ( "<img[^>]*?src\\ s*=\\ s*[\" ']?([^'\" >]+?)[ '\" ][^>]*?>" , RegexOptions . Compiled ) ]
23- private static partial Regex HtmlImgTagsGeneratedRegex ( ) ;
24- public static MatchCollection MatchesHtmlImgTags ( string input ) => HtmlImgTagsGeneratedRegex ( ) . Matches ( input ) ;
25-
19+ public static partial Regex HtmlImgTagsGeneratedRegex ( ) ;
2620
2721 [ GeneratedRegex ( "(?i)<a\\ b[^>]*?>(?<text>.*?)</a>" , RegexOptions . Compiled ) ]
28- private static partial Regex HtmlFileGeneratedRegex ( ) ;
29- public static MatchCollection MatchesHtmlFile ( string input ) => HtmlFileGeneratedRegex ( ) . Matches ( input ) ;
30-
22+ public static partial Regex HtmlFileGeneratedRegex ( ) ;
3123
3224 [ GeneratedRegex ( "!\\ [[^\\ ]]*\\ ]\\ ((blob:[^)]+)\\ )" , RegexOptions . Compiled ) ]
33- private static partial Regex MarkdownImgBlobGeneratedRegex ( ) ;
34- public static MatchCollection MatchesMarkdownImgBlob ( string input ) => MarkdownImgBlobGeneratedRegex ( ) . Matches ( input ) ;
35-
25+ public static partial Regex MarkdownImgBlobGeneratedRegex ( ) ;
3626
3727 [ GeneratedRegex ( @"!\[(?<filename>[^\]]+)\]\(data:image\/(?<type>.+);base64,(?<data>.+?)\)" , RegexOptions . Compiled ) ]
3828 public static partial Regex MarkdownDataImageBase64BlobGeneratedRegex ( ) ;
0 commit comments