Преглед изворни кода

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 ) );
 		}