Skip to content

Commit 41c646c

Browse files
Bound terminal UTF-8 profile paths
Use an explicit source delimiter for terminal POSIX profile names so international names do not depend on ASCII word-boundary behavior.
1 parent 6127a22 commit 41c646c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎public-source-release-audit/scripts/check_current_source.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
(?:
1414
(?:/|\\/)
1515
(?:
16-
(?:Users|home)(?:/|\\/)[A-Za-z0-9._\x80-\xFF-]+(?:(?:/|\\/)|\b)
16+
(?:Users|home)(?:/|\\/)[A-Za-z0-9._\x80-\xFF-]+(?:(?:/|\\/)|(?=[<>"'\s,;:)\]\}]|\z))
1717
|
1818
root(?:(?:/|\\/)|(?![A-Za-z0-9._-]))
1919
|

‎public-source-release-audit/tests/test_check_current_source.rb‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ def test_supported_high_confidence_formats_are_detected_and_redacted
166166
"macos-root-home.txt" => "/" + "var/root/.ssh/id_ed25519",
167167
"macos-private-root-home.txt" => "/" + "private/var/root/.ssh/id_ed25519",
168168
"unicode-posix-home.txt" => "/" + "home/山田/private.txt",
169+
"terminal-unicode-posix-home.txt" => "/" + "home/山田\n",
169170
"file-uri-home.txt" => "file://" + "/" + "home/example/private.txt",
170171
"windows-home.txt" => "C:" + "\\Users\\example\\private.txt",
171172
"lowercase-windows-home.txt" => "c:" + "\\users\\example\\private.txt",

0 commit comments

Comments
 (0)