Seditio Source
Root |
./othercms/phpBB3/vendor/s9e/text-formatter/src/Parser/AttributeFilters/MapFilter.js
/** @const */
var MapFilter =
{
/**
* @param  {*} attrValue
* @param  {!Array.<!Array>}  map
* @return {*}
*/
filter: function(attrValue, map)
{
var i = -1, cnt = map.length;
while (++i < cnt)
{
if (map[i][0].test(attrValue))
{
return map[i][1];
}
}

return attrValue;
}
};