Carregar ficheiros para "patterns"
This commit is contained in:
1
patterns/__init__.py
Normal file
1
patterns/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
# This file makes the 'patterns' directory a Python package
|
||||||
7
patterns/bmw_patterns.py
Normal file
7
patterns/bmw_patterns.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Padrões Regex específicos para BMW
|
||||||
|
|
||||||
|
PATTERNS_BMW = {
|
||||||
|
'Other Data': r'\b(?![a-z\s]{5,}\b)([A-Za-z0-9/\._\s-]{5,})\b',
|
||||||
|
# Adicionar outros padrões específicos BMW aqui se necessário
|
||||||
|
# Por exemplo, formatos de VIN específicos BMW, números de peça, etc.
|
||||||
|
}
|
||||||
9
patterns/common_patterns.py
Normal file
9
patterns/common_patterns.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
PATTERNS_COMMON = {
|
||||||
|
'Ecu Family': r'\b((?:MEDC|EDC|MDG|MD1)[A-Z0-9_]+)',
|
||||||
|
'Possible Software Number': r'\b(1037\d{6}|1039\d{6}|10SW\d{6}|28SA\d{6}|39S0\d{6})',
|
||||||
|
'VIN': r'\b([A-HJ-NPR-Z0-9]{17})\b',
|
||||||
|
'Possible PIN': r'\b([A-Z0-9]{4,8})\b', # Special counting logic for this pattern name is handled in the main analyzer function
|
||||||
|
'Bosch SW': r'\b103[79]\d{6}\b|\b02[68]\d{7}\b|\b10SW\d{6}',
|
||||||
|
}
|
||||||
|
|
||||||
|
INITIAL_ANALYSIS_PATTERNS_KEYS = ['Ecu Family', 'Possible Software Number']
|
||||||
4
patterns/landrover_jaguar_patterns.py
Normal file
4
patterns/landrover_jaguar_patterns.py
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
PATTERNS_LANDROVER_JAGUAR = {
|
||||||
|
'LandRover/Jaguar Specific SW': r'\b([A-Z0-9]{4}-[A-Z0-9]{6}-[A-Z0-9]{3})\b',
|
||||||
|
# Adicionar outros padrões específicos LandRover/Jaguar aqui se necessário
|
||||||
|
}
|
||||||
5
patterns/vag_patterns.py
Normal file
5
patterns/vag_patterns.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
PATTERNS_VAG = {
|
||||||
|
# Padrões para a funcionalidade "VAG SW"
|
||||||
|
'VAG Specific PartNumbers': r'\b([A-Z0-9]{3}(?:906|907|909|910|997)[A-Z0-9]{3}(?:[A-Z0-9]{2})?)\b',
|
||||||
|
'VAG 10SW': r'\b(10SW\d{6})' # Sem \b no final para consistência com Possible Software Number
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user