Skip to content

Commit

Permalink
changed naming of variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bianca-laube committed Jul 17, 2023
1 parent a9c553d commit 7466676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SearchResults/SearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const highlightSearchTerm = (text, searchTerm) =>
(result) => `<span style="${SEARCH_MATCH_STYLE}">${result}</span>`
);

const attrFeatureJson = newSearchInput
const spanAllowedStyles = newSearchInput
? {
'background-color': [new RegExp(`^${palette.green.light2}$`, 'i')],
'border-radius': [new RegExp(`^3px$`)],
Expand All @@ -123,7 +123,7 @@ const sanitizePreviewHtml = (text) =>
allowedTags: ['span'],
allowedAttributes: { span: ['style'] },
allowedStyles: {
span: attrFeatureJson,
span: spanAllowedStyles,
},
});

Expand Down

0 comments on commit 7466676

Please sign in to comment.