forked from baron/baron-sso
Merge pull request 'fix: 회원가입 페이지 UI 텍스트 포맷팅 노출 오류 수정 (Issue #610)' (#618) from fix-test-fixtures into dev
Reviewed-on: baron/baron-sso#618
This commit is contained in:
@@ -52,8 +52,11 @@ Map<String, dynamic> _expandFlatTranslations(Map<String, String> flatMap) {
|
||||
}
|
||||
|
||||
String _normalizeLocalizationValue(String value) {
|
||||
return value.replaceAllMapped(
|
||||
RegExp(r'\{\{[[:space:]]*([a-zA-Z0-9_]+)[[:space:]]*\}\}'),
|
||||
(match) => '{${match.group(1)}}',
|
||||
);
|
||||
return value
|
||||
.replaceAllMapped(
|
||||
RegExp(r'\{\{\s*([a-zA-Z0-9_]+)\s*\}\}'),
|
||||
(match) => '{${match.group(1)}}',
|
||||
)
|
||||
.replaceAll(r'\\n', '\n')
|
||||
.replaceAll(r'\n', '\n');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user