Skip to content

Commit 068acfd

Browse files
committed
Fix path segment
1 parent e9ac32f commit 068acfd

File tree

1 file changed

+6
-2
lines changed
  • csharp/ql/integration-tests/all-platforms/blazor_build_mode_none

1 file changed

+6
-2
lines changed

csharp/ql/integration-tests/all-platforms/blazor_build_mode_none/Files.ql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ import csharp
22

33
private string getPath(File f) {
44
result = f.getRelativePath() and
5-
not exists(result.indexOf("_ql_csharp_ql_integration_tests_blazor_build_mode_none_"))
5+
not exists(
6+
result.indexOf("_ql_csharp_ql_integration_tests_all_platforms_blazor_build_mode_none_")
7+
)
68
or
79
exists(int index1, int index2, string pattern |
810
pattern = "Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator" and
911
index1 = f.getRelativePath().indexOf(pattern) and
10-
index2 = f.getRelativePath().indexOf("_ql_csharp_ql_integration_tests_blazor_build_mode_none_") and
12+
index2 =
13+
f.getRelativePath()
14+
.indexOf("_ql_csharp_ql_integration_tests_all_platforms_blazor_build_mode_none_") and
1115
result =
1216
f.getRelativePath().substring(0, index1 + pattern.length()) + "/[...]" +
1317
f.getRelativePath().substring(index2, f.getRelativePath().length())

0 commit comments

Comments
 (0)