Skip to content

Commit e2cf347

Browse files
author
jan
committed
@1186 added # to the list of bad chars
1 parent e0be78f commit e2cf347

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

io.sloeber.core/src/io/sloeber/core/common/Common.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@ public class Common extends Const {
5858
* filenames containing spaces in Windows, see Note 1 < less than used to
5959
* redirect input, allowed in Unix filenames, see Note 1 > greater than used
6060
* to redirect output, allowed in Unix filenames, see Note 1 . period or dot
61+
*
62+
* # is excluded as it is seen as a special character by make
6163
*
6264
* @param name
6365
* the string that needs to be checked
6466
* @return a name safe to create files or folders
6567
*/
6668
public static String MakeNameCompileSafe(String name) {
67-
char[] badChars = { ' ', '/', '.',':', '\\', '(', ')', '*', '?', '%', '|', '<', '>', ',', '-' };
69+
char[] badChars = { ' ', '/', '.',':', '\\', '(', ')', '*', '?', '%', '|', '<', '>', ',', '-','#' };
6870

6971
String ret = name.trim();
7072
for (char curchar : badChars) {

0 commit comments

Comments
 (0)