mirror of
https://github.com/wownero/cyberwow.git
synced 2026-12-03 13:43:59 +01:00
fix pretty indent
This commit is contained in:
@@ -24,11 +24,10 @@ import 'dart:convert';
|
||||
import 'config.dart' as config;
|
||||
|
||||
String pretty(dynamic x) {
|
||||
final JsonEncoder encoder = JsonEncoder.withIndent(' ');
|
||||
final JsonEncoder encoder = JsonEncoder.withIndent('');
|
||||
return encoder.convert(x)
|
||||
.replaceAll(RegExp(r'^{'), '\n')
|
||||
.replaceAll(RegExp(r'["\[\],{}]'), '')
|
||||
.replaceAll('\n ', '\n')
|
||||
;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user