mirror of
https://github.com/hoverkraft-tech/compose-action.git
synced 2026-01-10 22:53:06 +08:00
11 lines
360 B
TypeScript
11 lines
360 B
TypeScript
/**
|
|
* @fileoverview Utility to convert gitignore patterns to minimatch.
|
|
* @author Nicholas C. Zakas
|
|
*/
|
|
/**
|
|
* Converts a gitignore pattern to a minimatch pattern.
|
|
* @param {string} pattern The gitignore pattern to convert.
|
|
* @returns {string} A minimatch pattern equivalent to `pattern`.
|
|
*/
|
|
export function gitignoreToMinimatch(pattern: string): string;
|