File tree 3 files changed +5
-6
lines changed
tests/debugger-test-special-char-in-path-#@
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1207,11 +1207,9 @@ private static string EscapeAscii(string path)
1207
1207
{
1208
1208
switch ( c )
1209
1209
{
1210
- case var _ when c >= 'a' && c <= 'z' :
1211
- case var _ when c >= 'A' && c <= 'Z' :
1212
- case var _ when char . IsDigit ( c ) :
1210
+ case var _ when char . IsLetterOrDigit ( c ) :
1213
1211
case var _ when c > 255 :
1214
- case var _ when c == '+' || c == ':' || c == '.' || c == '-' || c == '_' || c == '~' :
1212
+ case var _ when c == '+' || c == ':' || c == '.' || c == '-' || c == '_' || c == '~' || c == '´' || c == '`' || c == '^' || c == '¨' :
1215
1213
builder . Append ( c ) ;
1216
1214
break ;
1217
1215
case var _ when c == Path . DirectorySeparatorChar :
@@ -1220,13 +1218,14 @@ private static string EscapeAscii(string path)
1220
1218
builder . Append ( c ) ;
1221
1219
break ;
1222
1220
default :
1223
- builder . Append ( string . Format ( $ "%{ ( ( int ) c ) : X2} ") ) ;
1221
+ builder . AppendFormat ( "%{0 :X2}" , ( int ) c ) ;
1224
1222
break ;
1225
1223
}
1226
1224
}
1227
1225
return builder . ToString ( ) ;
1228
1226
}
1229
1227
1228
+
1230
1229
internal void AddMethod ( MethodInfo mi )
1231
1230
{
1232
1231
if ( ! this . methods . ContainsKey ( mi . Token ) )
Original file line number Diff line number Diff line change @@ -964,7 +964,7 @@ await EvaluateAndCheck(
964
964
"dotnet://debugger-test-special-char-in-path.dll/test#.cs" ) ]
965
965
[ InlineData (
966
966
"DebuggerTests.CheckSNonAsciiCharactersInPath" ,
967
- "dotnet://debugger-test-special-char-in-path.dll/non-ascii-test-ął .cs" ) ]
967
+ "dotnet://debugger-test-special-char-in-path.dll/non-ascii-test-ąłÅ .cs" ) ]
968
968
public async Task SetBreakpointInProjectWithSpecialCharactersInPath (
969
969
string classWithNamespace , string expectedFileLocation )
970
970
{
File renamed without changes.
You can’t perform that action at this time.
0 commit comments