mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-06-24 20:00:02 +02:00
Cleaned the comments and used test.describe to nest the tests
This commit is contained in:
parent
795135e3c9
commit
77c248fa1e
2 changed files with 98 additions and 105 deletions
|
@ -9,7 +9,6 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
// var fileNameComponentSanitizeRegexp = regexp.MustCompile(`(?i)\.\.|[<>:\"/\\|?*\x{0000}-\x{001F}]|^(con|prn|aux|nul|com\d|lpt\d)$`)
|
||||
var fileNameComponentSanitizeRegexp = regexp.MustCompile(`(?i)[<>:\"/\\|?*\x{0000}-\x{001F}]|^(con|prn|aux|nul|com\d|lpt\d)$`)
|
||||
|
||||
// SanitizePath cleans and validates a file path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue