Closed michaelcfanning closed 4 months ago
throw new InvalidOperationException($"Regex {regexPattern.Name} failed to detect example {example}");
this exception ensures that every engine is absolutely consistent in detecting a single result for every test pattern.
Refers to: src/Benchmarks/RegexEngineDetectionBenchmarks.cs:98 in c9393d3. [](commit_id = c9393d3fe9dfb0db6f943f1469afd35081df9f67, deletion_comment = False)
// Copyright (c) Microsoft. All rights reserved.
evil newline reformatting
Refers to: src/Microsoft.Security.Utilities.Cli/RedactCommand.cs:1 in 58ff98a. [](commit_id = 58ff98a4c9c05a95bb36553a83ada1fdf3d037eb, deletion_comment = False)
ComputeHash32(byte[], ulong, int, int)
helper to bring .NET framework and .NET core APIs into alignment.ISecretMaskerDetectSecrets(string)
isIEnumerable<Detection>
(notICollection
) for best yield iterator compatibility.url-safe
option in keyGenerateCommand
to produce URL-safe base64-encoded patterns.IdentifiableScan
engine that consume Rust library for detections.