Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Defkon1 committed Aug 4, 2023
1 parent 1ad7c80 commit 64ce363
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -31,7 +31,7 @@ The library is available on [NuGet](https://www.nuget.org/packages/ItalianToolki
- [x] Car plates (post 1994)
- [ ] Motorcycles and Motorbikes plates validation
- [x] Motorcycles (mopeds, three-wheelers, motor-tractors and light quadricycles with an engine capacity of less than 50 cm³)
- [x] Motorbikes (more than 50 cm³) - (Warning: old provinces codes check is missing)
- [x] Motorbikes (motor vehicles and quadrycycles with an engine capacity of more than 50 cm³) - (Warning: old provinces codes check is missing)
- [ ] Special vehicles plates validation
- [ ] Carabineers
- [ ] Civil Protection Department
Expand Down Expand Up @@ -95,8 +95,8 @@ The library is available on [NuGet](https://www.nuget.org/packages/ItalianToolki
- [ ] Temporary plates for vehicles in transit of Foreign Entities
- [ ] Test plates
- [x] Sovereign Military Order of Malta
- [x] Cars
- [x] Motorbykes
- [x] Cars
- [x] Motorbykes
- [x] State Police
- [ ] Places
- [ ] Regions
Expand Down
@@ -1,5 +1,5 @@
using ItalianToolkit.Transports.Models;
using System.Collections.Generic;
using System.Collections.Generic;
using ItalianToolkit.Transports.Models;

namespace ItalianToolkit.Transports.PlatesIdentifierPlugins
{
Expand Down
@@ -1,5 +1,5 @@
using ItalianToolkit.Transports.Models;
using System.Collections.Generic;
using System.Collections.Generic;
using ItalianToolkit.Transports.Models;

namespace ItalianToolkit.Transports.PlatesIdentifierPlugins
{
Expand Down
@@ -1,5 +1,5 @@
using ItalianToolkit.Transports.Models;
using System.Collections.Generic;
using System.Collections.Generic;
using ItalianToolkit.Transports.Models;

namespace ItalianToolkit.Transports.PlatesIdentifierPlugins
{
Expand Down
Expand Up @@ -3,7 +3,7 @@
public class ItalianRedCrossMotorbikePlateIdentifier : RegexPlateIdentifier
{
public override Models.PlateType PlateType => Models.PlateType.ItalianRedCrossMotorbike;

public override string Pattern => @"^[cC][rR][iI]\d{3,4}\b$";
}
}
Expand Up @@ -7,7 +7,7 @@ namespace ItalianToolkit.Transports.PlatesIdentifierPlugins
public abstract class RegexMultiPlateIdentifier : IPlatesIdentifierPlugin
{
public virtual Dictionary<PlateType, string> Patterns => new Dictionary<PlateType, string>();

public virtual Plate TryIdentifyPlate(string plateNumber)
{
var testPlateNumber = plateNumber.Trim().ToUpper().Replace(" ", "");
Expand All @@ -19,7 +19,7 @@ public virtual Plate TryIdentifyPlate(string plateNumber)
Regex regex = new Regex(pattern.Value, RegexOptions.IgnoreCase);
if (regex.IsMatch(testPlateNumber))
{
res = new Plate()
res = new Plate()
{
PlateNumber = plateNumber,
Type = pattern.Key
Expand Down
@@ -1,5 +1,5 @@
using ItalianToolkit.Transports.Models;
using System.Collections.Generic;
using System.Collections.Generic;
using ItalianToolkit.Transports.Models;

namespace ItalianToolkit.Transports.PlatesIdentifierPlugins
{
Expand Down

0 comments on commit 64ce363

Please sign in to comment.