Skip to content

Commit 71a14c3

Browse files
committed
adjust comment
1 parent 9de0715 commit 71a14c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/yoastseo/src/languageProcessing/helpers/word/markWordsInSentences.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ const getMarkedAnchors = function( sentence, wordsRegex ) {
5353
// Retrieve the open tag and the content/anchor text.
5454
const { openTag, content } = deConstructAnchor( anchor );
5555

56-
// Apply the marking to the anchor text.
56+
// Apply the marking to the anchor text if there is a match.
5757
const markedAnchorText = content.replace( wordsRegex, ( x ) => addMark( x ) );
5858

59-
// Create a new anchor tag with a marked anchor text if there is a match.
59+
// Create a new anchor tag with a (marked) anchor text.
6060
return reConstructAnchor( openTag, markedAnchorText );
6161
} );
6262

0 commit comments

Comments
 (0)