Преглед на файлове

Fix condition in html2markdown processing.

Maciej Gołaszewski преди 5 години
родител
ревизия
516ed39369
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      packages/ckeditor5-markdown-gfm/src/html2markdown/html2markdown.js

+ 1 - 1
packages/ckeditor5-markdown-gfm/src/html2markdown/html2markdown.js

@@ -36,7 +36,7 @@ TurndownService.prototype.escape = function( string ) {
 		const index = match.index;
 
 		// Append the substring between the last match and the current one (if anything).
-		if ( index >= lastLinkEnd ) {
+		if ( index > lastLinkEnd ) {
 			escaped += escape( string.substring( lastLinkEnd, index ) );
 		}