mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-09-11 05:19:18 -04:00
Fix formatting
This commit is contained in:
parent
73bbdcc033
commit
824840a776
@ -50,13 +50,7 @@ fn findValidFolderName(allocator: NeverFailingAllocator, name: []const u8) []con
|
||||
defer main.stackAllocator.free(escapedName);
|
||||
for(name, 0..) |char, i| {
|
||||
escapedName[i] = switch(char) {
|
||||
'a'...'z',
|
||||
'A'...'Z',
|
||||
'0'...'9',
|
||||
'_',
|
||||
'-',
|
||||
'.',
|
||||
' ' => char,
|
||||
'a'...'z', 'A'...'Z', '0'...'9', '_', '-', '.', ' ' => char,
|
||||
128...255 => char,
|
||||
else => '-',
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user