mirror of
https://gitlab.com/arm-research/smarter/smarter-device-manager.git
synced 2025-09-14 04:20:29 +00:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
fe9b26d283 |
2
main.go
2
main.go
@@ -93,7 +93,7 @@ func readDevDirectory(dirToList string, allowedRecursions uint8) (files []string
|
|||||||
}
|
}
|
||||||
|
|
||||||
func sanitizeName(path string) string {
|
func sanitizeName(path string) string {
|
||||||
return strings.Replace(path, "/", "_" ,-1)
|
return strings.Replace(path, "/!@#$%^&*()[]{}'`~.", "___________________",-1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func findDevicesPattern(listDevices []string, pattern string) ([]string,error) {
|
func findDevicesPattern(listDevices []string, pattern string) ([]string,error) {
|
||||||
|
Reference in New Issue
Block a user