mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
fix miss assigning replaceAll return value.
This commit is contained in:
@@ -144,12 +144,12 @@ public abstract class DeckBase implements Serializable, Comparable<DeckBase>, In
|
||||
*/
|
||||
public final String getBestFileName() {
|
||||
//string operator hard to guarantee filename legal,only replace some not allowed as file names characters
|
||||
name.replaceAll("[\\/:*?\"<>|]","");
|
||||
if (name == "") {
|
||||
final String result = name.replaceAll("[\\/:*?\"<>|]","");
|
||||
if (result == "") {
|
||||
//"getBestFileName" sha1 value
|
||||
return "bc2b4ac6bf8dd84112c79e4c733b0b5bd8f057b3";
|
||||
}
|
||||
return name;
|
||||
return result;
|
||||
}
|
||||
|
||||
public abstract boolean isEmpty();
|
||||
|
||||
Reference in New Issue
Block a user