mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-04-05 20:55:01 +08:00
Removed mistaken bracket in text replace operation
This commit is contained in:
parent
321f321e53
commit
9056d2bdff
@ -82,7 +82,7 @@
|
||||
// as single-byte or multiple-byte character codes.
|
||||
|
||||
// Note: order of replacing is important. Replace slash first before brackets.
|
||||
text = text.Replace(@"\", @"\\)"); // Escape any slash '\' -> '\\'
|
||||
text = text.Replace(@"\", @"\\"); // Escape any slash '\' -> '\\'
|
||||
text = text.Replace("(", @"\("); // Escape any open brackets '(' -> '\('
|
||||
text = text.Replace(")", @"\)"); // Escape any close brackets ')' -> '\)'
|
||||
|
||||
@ -114,4 +114,4 @@
|
||||
return $"{Text} {Symbol}";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user