mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Replace regex with source generation.
This commit is contained in:
@@ -30,9 +30,14 @@
|
||||
// Copyright © 2011-2025 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Aaru.Images;
|
||||
|
||||
public sealed partial class DriDiskCopy
|
||||
{
|
||||
const string REGEX_DRI = @"DiskImage\s(?<version>\d+.\d+)\s\(C\)\s\d+\,*\d*\s+Digital Research Inc";
|
||||
|
||||
[GeneratedRegex(REGEX_DRI)]
|
||||
private static partial Regex DriRegex();
|
||||
}
|
||||
Reference in New Issue
Block a user