mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 02:05:04 +00:00
Merged via squash.
Prepared head SHA: cfbe5fe830
Co-authored-by: benediktjohannes <253604130+benediktjohannes@users.noreply.github.com>
Co-authored-by: shakkernerd <165377636+shakkernerd@users.noreply.github.com>
Reviewed-by: @shakkernerd
This commit is contained in:
committed by
GitHub
parent
dc816b84ea
commit
b81e1b902d
@@ -116,6 +116,20 @@ const ANGLE_BRACKET_MAP: Record<number, string> = {
|
||||
0x27e9: ">", // mathematical right angle bracket
|
||||
0xfe64: "<", // small less-than sign
|
||||
0xfe65: ">", // small greater-than sign
|
||||
0x00ab: "<", // left-pointing double angle quotation mark
|
||||
0x00bb: ">", // right-pointing double angle quotation mark
|
||||
0x300a: "<", // left double angle bracket
|
||||
0x300b: ">", // right double angle bracket
|
||||
0x27ea: "<", // mathematical left double angle bracket
|
||||
0x27eb: ">", // mathematical right double angle bracket
|
||||
0x27ec: "<", // mathematical left white tortoise shell bracket
|
||||
0x27ed: ">", // mathematical right white tortoise shell bracket
|
||||
0x27ee: "<", // mathematical left flattened parenthesis
|
||||
0x27ef: ">", // mathematical right flattened parenthesis
|
||||
0x276c: "<", // medium left-pointing angle bracket ornament
|
||||
0x276d: ">", // medium right-pointing angle bracket ornament
|
||||
0x276e: "<", // heavy left-pointing angle quotation mark ornament
|
||||
0x276f: ">", // heavy right-pointing angle quotation mark ornament
|
||||
};
|
||||
|
||||
function foldMarkerChar(char: string): string {
|
||||
@@ -135,7 +149,7 @@ function foldMarkerChar(char: string): string {
|
||||
|
||||
function foldMarkerText(input: string): string {
|
||||
return input.replace(
|
||||
/[\uFF21-\uFF3A\uFF41-\uFF5A\uFF1C\uFF1E\u2329\u232A\u3008\u3009\u2039\u203A\u27E8\u27E9\uFE64\uFE65]/g,
|
||||
/[\uFF21-\uFF3A\uFF41-\uFF5A\uFF1C\uFF1E\u2329\u232A\u3008\u3009\u2039\u203A\u27E8\u27E9\uFE64\uFE65\u00AB\u00BB\u300A\u300B\u27EA\u27EB\u27EC\u27ED\u27EE\u27EF\u276C\u276D\u276E\u276F]/g,
|
||||
(char) => foldMarkerChar(char),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user