leofly 2020-02-07 11:30:29

匹配win10文件命名中不允许的字符

let pattern = /[\\\\/:\\*\\?"< >\\|'\\.]/g;
str = str.replace(pattern, "_");

评论

inicio - Wiki
Copyright © 2011-2025 iteam. Current version is 2.139.0. UTC+08:00, 2025-01-09 03:38
浙ICP备14020137号-1 $mapa de visitantes$