UNPKG

axe-core

Version:

Accessibility engine for automated Web UI testing

16 lines (14 loc) 267 B
/** * Converts space delimited token list to an Array * @method tokenList * @memberof axe.utils * @param {String} str * @return {Array} */ axe.utils.tokenList = function(str) { 'use strict'; return str .trim() .replace(/\s{2,}/g, ' ') .split(' '); };