Skip to content

Commit

Permalink
Bump csharpier from 0.29.2 to 0.30.1 (#176)
Browse files Browse the repository at this point in the history
* Bump csharpier from 0.29.2 to 0.30.1

Bumps [csharpier](https://github.com/belav/csharpier) from 0.29.2 to 0.30.1.
- [Release notes](https://github.com/belav/csharpier/releases)
- [Changelog](https://github.com/belav/csharpier/blob/main/CHANGELOG.md)
- [Commits](belav/csharpier@0.29.2...0.30.1)

---
updated-dependencies:
- dependency-name: csharpier
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* CSharpier format

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: gstraccini[bot] <150967461+gstraccini[bot]@users.noreply.github.com>
  • Loading branch information
dependabot[bot] and gstraccini[bot] authored Nov 19, 2024
1 parent 61ef9dd commit 79f8c15
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 61 deletions.
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"csharpier": {
"version": "0.29.2",
"version": "0.30.1",
"commands": [
"dotnet-csharpier"
]
Expand Down
110 changes: 50 additions & 60 deletions BancosBrasileiros.MergeTool/Helpers/Patterns.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,100 +25,90 @@ internal static class Patterns
/// <summary>
/// The comma separated values pattern
/// </summary>
public static readonly Regex CsvPattern =
new(
",(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex CsvPattern = new(
",(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);

/// <summary>
/// The semicolon separated values pattern
/// </summary>
public static readonly Regex SsvPattern =
new(
";(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex SsvPattern = new(
";(?=(?:[^\"]*\"[^\"]*\")*(?![^\"]*\"))",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);

/// <summary>
/// The SLC pattern
/// </summary>
public static readonly Regex SlcPattern =
new(
@"^(?<code>\d{1,3})\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,2})\d{2})\s(?<nome>.+?)(?:[\s|X]){2,7}(Confidencial)?$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex SlcPattern = new(
@"^(?<code>\d{1,3})\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,2})\d{2})\s(?<nome>.+?)(?:[\s|X]){2,7}(Confidencial)?$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);

/// <summary>
/// The SILOC pattern
/// </summary>
public static readonly Regex SilocPattern =
new(
@"^(?<code>\d{1,3})\s(?<compe>\d{3})\s(?<ispb>\d{8})\s(?<cobranca>sim|não)\s(?<doc>sim|não)\s(?<nome>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex SilocPattern = new(
@"^(?<code>\d{1,3})\s(?<compe>\d{3})\s(?<ispb>\d{8})\s(?<cobranca>sim|não)\s(?<doc>sim|não)\s(?<nome>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);

/// <summary>
/// The SITRAF pattern
/// </summary>
public static readonly Regex SitrafPattern =
new(
@"^(?<code>\d{1,3})\s(?<compe>\d{3})\s(?<ispb>\d{8})\s(?<nome>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex SitrafPattern = new(
@"^(?<code>\d{1,3})\s(?<compe>\d{3})\s(?<ispb>\d{8})\s(?<nome>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);

/// <summary>
/// The ctc pattern
/// </summary>
public static readonly Regex CtcPattern =
new(
@"^\s?(?<code>\d{1,3})\s(?<nome>.+?)\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,2})\d{2})\s+(?<ispb>\d{8})\s(?<produtos>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex CtcPattern = new(
@"^\s?(?<code>\d{1,3})\s(?<nome>.+?)\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,2})\d{2})\s+(?<ispb>\d{8})\s(?<produtos>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);

/// <summary>
/// The PCPS pattern
/// </summary>
public static readonly Regex PcpsPattern =
new(
@"^(?<code>\d{1,3})\s(?<nome>.+?)\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,3})\d{2})\s+(?<ispb>\d{7,8})\s(?<adesao>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex PcpsPattern = new(
@"^(?<code>\d{1,3})\s(?<nome>.+?)\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,3})\d{2})\s+(?<ispb>\d{7,8})\s(?<adesao>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);

/// <summary>
/// The CQL pattern
/// </summary>
public static readonly Regex CqlPattern =
new(
@"^(?<code>\d{1,3})\s(?<nome>.+?)\s(?<ispb>\d{7,8})\s(?<tipo>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex CqlPattern = new(
@"^(?<code>\d{1,3})\s(?<nome>.+?)\s(?<ispb>\d{7,8})\s(?<tipo>.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);

/// <summary>
/// The detecta flow pattern
/// </summary>
public static readonly Regex DetectaFlowPattern =
new(
@"^(?<code>\d{1,3})\s(?<nome>.+?)\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,2})\d{2})\s+(?<ispb>\d{7,8})(.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex DetectaFlowPattern = new(
@"^(?<code>\d{1,3})\s(?<nome>.+?)\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,2})\d{2})\s+(?<ispb>\d{7,8})(.+?)$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);

/// <summary>
/// The PCR pattern
/// </summary>
public static readonly Regex PcrPattern =
new(
@"^(?<code>\d{1,3})\s(?<nome>.+?)\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,2})\d{2})\s+(?<compe>\d{3})\s+(?<ispb>\d{7,8})\s(?<pcr>.{3})\s(?<pcrp>.{3})(.+)?$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
public static readonly Regex PcrPattern = new(
@"^(?<code>\d{1,3})\s(?<nome>.+?)\s(?<cnpj>\d{1,2}\.\d{3}\.\d{3}(?:.|\/)\d{4}([-|·|\.|\s]{1,2})\d{2})\s+(?<compe>\d{3})\s+(?<ispb>\d{7,8})\s(?<pcr>.{3})\s(?<pcrp>.{3})(.+)?$",
RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | RegexOptions.Compiled,
TimeSpan.FromSeconds(5)
);
}

0 comments on commit 79f8c15

Please sign in to comment.