We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec420cb commit a7a9c26Copy full SHA for a7a9c26
1 file changed
ModBrowser/ModIdentity/XmlModIdentity.cs
@@ -78,7 +78,15 @@ string ParseString(string attributeName)
78
// Parse an optional string from XML doc
79
string? ParseOptionalString(string attributeName)
80
{
81
- return xmlDocument.Attribute(attributeName)?.Value;
+ var value = xmlDocument.Attribute(attributeName)?.Value;
82
+
83
+ // If the value starts with $SPOREMOD, it is a placeholder and should be treated as not present
84
+ if (value is not null && value.StartsWith("$SPOREMOD"))
85
+ {
86
+ return null;
87
+ }
88
89
+ return value;
90
}
91
92
// Parse a required version from XML doc
0 commit comments