extension-develop
Version:
The develop step of Extension.js
8 lines (7 loc) • 394 B
TypeScript
/**
* From the docs at https://developer.chrome.com/docs/extensions/reference/manifest/web-accessible-resources#manifest_declaration
* > Google Chrome emits an "Invalid match pattern" error if the pattern has a path other than '/*'.
*
* We need to ensure that paths are cleaned up from the matches to avoid this error.
*/
export declare function cleanMatches(matches: string[]): string[];