Skip to content

Commit b278c6a

Browse files
committed
using explicit type where it's not obvious
1 parent 658cf84 commit b278c6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ICSharpCode.ILSpyX/MermaidDiagrammer/ClassDiagrammerFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public CD BuildModel(string assemblyPath, string? include, string? exclude)
6060
IEnumerable<ITypeDefinition> allTypes = mainModule.TypeDefinitions;
6161

6262
selectedTypes = FilterTypes(allTypes,
63-
include == null ? null : new(include, RegexOptions.Compiled),
64-
exclude == null ? null : new(exclude, RegexOptions.Compiled)).ToArray();
63+
include == null ? null : new Regex(include, RegexOptions.Compiled),
64+
exclude == null ? null : new Regex(exclude, RegexOptions.Compiled)).ToArray();
6565

6666
// generate dictionary to read names from later
6767
uniqueIds = GenerateUniqueIds(selectedTypes);

0 commit comments

Comments
 (0)