Automation roots: refuse COM¹ to LPT³ as Windows device names

This commit is contained in:
Adithya Shankaran
2026-11-06 14:34:58 +07:00
committed by bflatastic
parent 91efec6cec
commit a455e72bf8
4 changed files with 25 additions and 10 deletions
+1 -1
View File
@@ -4508,7 +4508,7 @@ row's files in a sub-folder (its size or format, or its own `folder`; `folders:
sub-folders) replaces the rows, and `settings: {png: {…}, jpg: {…}, svg: {…}, pdf: {preset}}` gives every row of a
format its options. On every platform, `/`, `\`, `:`, `<`, `>`, `"`, `|`, `?`, `*` and control characters from a
prefix, a suffix, a name pattern or an item's name become `-` in file and folder names, a folder name ends without
periods or spaces, and a Windows device name (`CON`, `PRN`, `AUX`, `NUL`, `COM1` to `COM9`, `LPT1` to `LPT9`) that
periods or spaces, and a Windows device name (`CON`, `PRN`, `AUX`, `NUL`, `COM1` to `COM9`, `COM¹` to `COM³`, `LPT1` to `LPT9`, `LPT¹` to `LPT³`) that
is the whole name or comes before its first period gets a `-` after it (`CON-.png`). When a row's file would take a
name another row's file already has, compared without case (two PNG rows with different backgrounds and no suffix),
the later file is written as `-2`, `-3`… (`Artboard-1-2.png`) and listed under that name in `files`; two identical