Skip to content

Latest commit

 

History

History
124 lines (49 loc) · 1.37 KB

File metadata and controls

124 lines (49 loc) · 1.37 KB

Gitignore

Gitignore matches against text.

  • Full name: \Symfony\Component\Finder\Gitignore

Methods

toRegex

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

public static toRegex(string $gitignoreFileContent): string

Format specification: https://git-scm.com/docs/gitignore#_pattern_format

  • This method is static.

Parameters:

Parameter Type Description
$gitignoreFileContent string

toRegexMatchingNegatedPatterns

public static toRegexMatchingNegatedPatterns(string $gitignoreFileContent): string
  • This method is static.

Parameters:

Parameter Type Description
$gitignoreFileContent string

buildRegex

private static buildRegex(string $gitignoreFileContent, bool $inverted): string
  • This method is static.

Parameters:

Parameter Type Description
$gitignoreFileContent string
$inverted bool

lineToRegex

private static lineToRegex(string $gitignoreLine): string
  • This method is static.

Parameters:

Parameter Type Description
$gitignoreLine string