Skip to content

Commit

Permalink
GLib specific regex for null character
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphastaire committed Aug 17, 2024
1 parent 2b772b7 commit 3374ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libdino/src/service/file_manager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class FileManager : StreamInteractionModule, Object {
#if _WIN32
GLib.Regex regex = new GLib.Regex("[<>:\"/\\|?*]");
#else
GLib.Regex regex = new GLib.Regex("[\/\x00]");
GLib.Regex regex = new GLib.Regex("[/\\x{00}]");
#endif
return regex.replace(filename, -1, 0, "_");
}
Expand Down

0 comments on commit 3374ac0

Please sign in to comment.