wizards/source/scriptforge/SF_String.xba | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit e94e19bf2e19c17ac96c8c387baec3e16e0d8b83 Author: Jean-Pierre Ledure <[email protected]> AuthorDate: Mon Feb 2 15:29:18 2026 +0100 Commit: Adolfo Jayme Barrientos <[email protected]> CommitDate: Mon Feb 2 20:56:35 2026 +0100 ScriptForge fix tdf#169176 comma in file names Per https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#file-and-directory-names the comma and the semicolon are not reserved characters in folder or file names. Not in Windows, and also not in Linux. The regular expressions used to filter valid file names have been reviewed accordingly in the ScriptForge.SF_String module. No impact on user scripts, except a better tolerance. No impact on user documentation. Change-Id: I2c4bd442764e0362e1ca6f44603311b0b7ca7679 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198552 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <[email protected]> diff --git a/wizards/source/scriptforge/SF_String.xba b/wizards/source/scriptforge/SF_String.xba index 01205534fcb9..3342d1427aaa 100644 --- a/wizards/source/scriptforge/SF_String.xba +++ b/wizards/source/scriptforge/SF_String.xba @@ -60,8 +60,8 @@ Const REGEXTIMEMIN = "([0-5][0-9])" Const REGEXTIMESEC = REGEXTIMEMIN Const REGEXDIGITS = "^[0-9]+$" Const REGEXEMAIL = "^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$" -Const REGEXFILELINUX = "^[^<>:;,?""*|\]+$" -Const REGEXFILEWIN = "^([A-Z]|[a-z]:)?[^<>:;,?""*|]+$" +Const REGEXFILELINUX = "^[^<>:?""*|\]+$" +Const REGEXFILEWIN = "^([A-Z]|[a-z]:)?[^<>:?""*|]+$" Const REGEXHEXA = "^(0X|&H)?[0-9A-F]+$" ' Includes 0xFF and &HFF Const REGEXIPV4 = "^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" Const REGEXNUMBER = "^[-+]?(([0-9]+)?\.)?[0-9]+([eE][-+]?[0-9]+)?$"
