mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 06:14:25 +02:00
improve path sanitizer
This commit is contained in:
parent
2eff5832d7
commit
eed6c3cd24
@ -192,11 +192,11 @@ public class PathSanitizer {
|
|||||||
return ch == '.'
|
return ch == '.'
|
||||||
|| ch == '+'
|
|| ch == '+'
|
||||||
|| ch == '-'
|
|| ch == '-'
|
||||||
|| ch == '_'
|
|
||||||
|| ch == '#';
|
|| ch == '#';
|
||||||
}
|
}
|
||||||
private static boolean isGoodFileNameChar(char ch){
|
private static boolean isGoodFileNameChar(char ch){
|
||||||
return (ch >= '0' && ch <= '9')
|
return ch == '_'
|
||||||
|
|| (ch >= '0' && ch <= '9')
|
||||||
|| (ch >= 'A' && ch <= 'Z')
|
|| (ch >= 'A' && ch <= 'Z')
|
||||||
|| (ch >= 'a' && ch <= 'z');
|
|| (ch >= 'a' && ch <= 'z');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user