Skip to content

Commit

Permalink
Fix "HYPEN" typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Dail authored and ljharb committed Nov 10, 2017
1 parent d64abf3 commit 45a1a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/enzyme/src/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PSEUDO_ELEMENT = 'pseudoElementSelector';

const EXACT_ATTRIBUTE_OPERATOR = '=';
const WHITELIST_ATTRIBUTE_OPERATOR = '~=';
const HYPEN_ATTRIBUTE_OPERATOR = '|=';
const HYPHENATED_ATTRIBUTE_OPERATOR = '|=';
const PREFIX_ATTRIBUTE_OPERATOR = '^=';
const SUFFIX_ATTRIBUTE_OPERATOR = '$=';
const SUBSTRING_ATTRIBUTE_OPERATOR = '*=';
Expand Down Expand Up @@ -106,7 +106,7 @@ function matchAttributeSelector(node, token) {
* @example
* [hreflang|="en"] matches hreflang="en-US"
*/
case HYPEN_ATTRIBUTE_OPERATOR:
case HYPHENATED_ATTRIBUTE_OPERATOR:
return nodePropValue === value || nodePropValue.startsWith(`${value}-`);
/**
* Represents an element with the att attribute whose value begins with the prefix value.
Expand Down

0 comments on commit 45a1a7d

Please sign in to comment.