diff --git a/src/main/java/net/vhati/modmanager/core/ModUtilities.java b/src/main/java/net/vhati/modmanager/core/ModUtilities.java index 4e4c361..d531e9c 100644 --- a/src/main/java/net/vhati/modmanager/core/ModUtilities.java +++ b/src/main/java/net/vhati/modmanager/core/ModUtilities.java @@ -878,7 +878,7 @@ public static Report validateModXML( String text ) { tmpBuf = srcBuf; srcBuf = dstBuf; dstBuf = tmpBuf; dstBuf.setLength( 0 ); // Comments with long tails or double-dashes. - m = Pattern.compile( "(?s)" ).matcher( srcBuf ); + m = Pattern.compile( "(?s)){1}+" ).matcher( srcBuf ); while ( m.find() ) { if ( m.group( 1 ).length() > 0 || m.group( 3 ).length() > 0 || m.group( 2 ).indexOf( "--" ) != -1 ) { messages.add( new ReportMessage(