9 lines
254 B
TypeScript
9 lines
254 B
TypeScript
/**
|
|
* Utility to turn a list of extnames (*with* dots) into an expression.
|
|
*
|
|
* @param {Array<string>} extnames
|
|
* List of extnames.
|
|
* @returns {RegExp}
|
|
* Regex matching them.
|
|
*/
|
|
export function extnamesToRegex(extnames: Array<string>): RegExp;
|