Seditio Source
Root
|
.
/
othercms
/
phpBB3
/
vendor
/
s9e
/
text-formatter
/
src
/
Parser
/
AttributeFilters
/
RegexpFilter.js
/** @const */
var RegexpFilter =
{
/**
* @param {*} attrValue
* @param {!RegExp} regexp
* @return {*}
*/
filter: function(attrValue, regexp)
{
return regexp.test(attrValue) ? attrValue : false;
}
};