Skip to content

Commit

Permalink
Merge pull request #56 from kachkaev/patch-1
Browse files Browse the repository at this point in the history
Allow passing React components as matchElement
  • Loading branch information
helior committed Aug 28, 2018
2 parents f3b24bc + 8697db8 commit aadf4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/highlighter.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ var Highlighter = createReactClass({
caseSensitive: PropTypes.bool,
ignoreDiacritics: PropTypes.bool,
diacriticsBlacklist: PropTypes.string,
matchElement: PropTypes.string,
matchElement: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
matchClass: PropTypes.string,
matchStyle: PropTypes.object
},
Expand Down

0 comments on commit aadf4c7

Please sign in to comment.