Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

fix(highlight): allow array as "attribute" #2474

Merged
merged 4 commits into from
May 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ const Highlighter = ({
Highlighter.propTypes = {
cx: PropTypes.func.isRequired,
hit: PropTypes.object.isRequired,
attribute: PropTypes.string.isRequired,
attribute: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.string),
PropTypes.string,
]).isRequired,
highlight: PropTypes.func.isRequired,
highlightProperty: PropTypes.string.isRequired,
tagName: PropTypes.string,
Expand Down