File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
usr/libexec/helper-scripts Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -270,8 +270,9 @@ tests() {
270270 run_test " alpha_numeric: rejects empty" check_is_alpha_numeric 1 test_value " "
271271 run_test " alpha_numeric: rejects dot" check_is_alpha_numeric 1 test_value " ."
272272 run_test " alpha_numeric: rejects space" check_is_alpha_numeric 1 test_value " plain text"
273- # run_test "alpha_numeric: rejects unicode" check_is_alpha_numeric 1 test_value "cafe"
274- run_test " alpha_numeric: accepts token with dash/underscore" check_is_alpha_numeric 0 test_value " test_123-OK"
273+ run_test " alpha_numeric: accepts dash/underscore" check_is_alpha_numeric 0 test_value " test_123-OK"
274+ # # TODO: unclear if this is possible without unicode-show
275+ # run_test "alpha_numeric: rejects unicode" check_is_alpha_numeric 1 test_value $'caf\xC3\xA9'
275276
276277 run_test " safe_filename: accepts simple name" validate_safe_filename 0 test_value " test"
277278 run_test " safe_filename: accepts spaces and punctuation" validate_safe_filename 0 test_value " plain text (v1) [ok].txt"
@@ -283,6 +284,8 @@ tests() {
283284 run_test " safe_filename: rejects control char newline" validate_safe_filename 1 test_value $' hello\n world'
284285 run_test " safe_filename: rejects leading dash" validate_safe_filename 1 test_value " -rf"
285286 run_test " safe_filename: rejects overlong name" validate_safe_filename 1 test_value " $( printf ' a%.0s' {1..256}) "
287+ # # TODO: unclear if this is possible without unicode-show
288+ # run_test "safe_filename: rejects unicode" validate_safe_filename 1 test_value $'caf\xC3\xA9'
286289
287290 run_test " one_line: rejects empty" check_is_not_empty_and_only_one_line 1 test_value " "
288291 run_test " one_line: rejects only whitespace/newlines" check_is_not_empty_and_only_one_line 1 test_value $' \n\n '
You can’t perform that action at this time.
0 commit comments