Commit 98c2967
authored
Fix handling % chars in interpolated strings (#14440)
Interpolated strings require escaping '%' chars by doubling them,
however if an interpolated string literal had no interpolation
expressions, it would not drop extra '%' chars in the content.
Co-authored-by: Adam Boniecki <[email protected]>1 parent b38116a commit 98c2967
File tree
2 files changed
+10
-3
lines changed- src/Compiler/Checking
- tests/FSharp.Compiler.ComponentTests/Language
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7165 | 7165 | | |
7166 | 7166 | | |
7167 | 7167 | | |
7168 | | - | |
7169 | | - | |
7170 | 7168 | | |
| 7169 | + | |
| 7170 | + | |
7171 | 7171 | | |
7172 | 7172 | | |
7173 | 7173 | | |
7174 | 7174 | | |
| 7175 | + | |
7175 | 7176 | | |
7176 | 7177 | | |
7177 | 7178 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments