|
|
@ -468,12 +468,7 @@ Future<Map<String, List<Map<String, dynamic>>>> _parseRoutesFile( |
|
|
|
throw Exception('Unsupported routes format'); |
|
|
|
throw Exception('Unsupported routes format'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
final allowedVariables = [ |
|
|
|
final variables = RegExp(r'^(\$(requirements[a-zA-Z]*) =[^;]*;)$', multiLine: true) |
|
|
|
'requirements', |
|
|
|
|
|
|
|
'requirementsWithToken', |
|
|
|
|
|
|
|
'requirementsWithMessageId', |
|
|
|
|
|
|
|
]; |
|
|
|
|
|
|
|
final variables = RegExp('^(\\\$(${allowedVariables.join('|')}) =[^;]*;)\$', multiLine: true) |
|
|
|
|
|
|
|
.allMatches(content) |
|
|
|
.allMatches(content) |
|
|
|
.map((final match) => match.group(1)!) |
|
|
|
.map((final match) => match.group(1)!) |
|
|
|
.toList(); |
|
|
|
.toList(); |
|
|
|