This commit is contained in:
jrenslin committed 2026-09-28 22:24:59 +02:00
1 parent c9ffe04d6c
commit 3d4e254eda
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ final class NodaValidationHelper {
} }
// Ensure the description is not just a copy-pasted version of the tag name. // Ensure the description is not just a copy-pasted version of the tag name.
if (empty(trim(str_replace($description, $name, ''), "#,.;:\t " . PHP_EOL))) { if (empty(trim(str_replace($name, '', $description), "#,.;:\t " . PHP_EOL))) {
throw new MDgenericInvalidInputsException("The tag description cannot be simply a fancy copy of the tag's name. Please define it."); throw new MDgenericInvalidInputsException("The tag description cannot be simply a fancy copy of the tag's name. Please define it.");
} }