FileAccess Orion

Gitignore
in package

Gitignore matches against text.

Tags
author

Ahmed Abdou mail@ahmd.io

Table of Contents

toRegex()  : string
Returns a regexp which is the equivalent of the gitignore pattern.
getRegexFromGitignore()  : string

Methods

toRegex()

Returns a regexp which is the equivalent of the gitignore pattern.

public static toRegex(string $gitignoreFileContent) : string
Parameters
$gitignoreFileContent : string
Return values
string

The regexp

getRegexFromGitignore()

private static getRegexFromGitignore(string $gitignorePattern) : string
Parameters
$gitignorePattern : string
Return values
string

Search results