Skip to content

Commit

Permalink
normalizedValues to values
Browse files Browse the repository at this point in the history
  • Loading branch information
qw-in authored and beefancohen committed Oct 16, 2018
1 parent 651366c commit 93265cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/aria-role.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ module.exports = {
// value isn't in the form of a literal.
if (value === undefined || value === null) { return; }

const normalizedValues = String(value).split(' ');
const values = String(value).split(' ');
const validRoles = [...roles.keys()].filter(role => roles.get(role).abstract === false);
const isValid = normalizedValues.every(val => validRoles.indexOf(val) > -1);
const isValid = values.every(val => validRoles.indexOf(val) > -1);

if (isValid === true) { return; }

Expand Down

0 comments on commit 93265cb

Please sign in to comment.