Files
flutter_server_box/lib/data/res/misc.dart
2023-09-16 16:56:11 +08:00

25 lines
584 B
Dart

import 'dart:convert';
class Miscs {
const Miscs._();
/// RegExp for number
static final numReg = RegExp(r'\s{1,}');
/// RegExp for password request
static final pwdRequestWithUserReg = RegExp(r'\[sudo\] password for (.+):');
/// Private Key max allowed size is 20kb
static const privateKeyMaxSize = 20 * 1024;
// Editor max allowed size is 1mb
static const editorMaxSize = 1024 * 1024;
/// Max debug log lines
static const maxDebugLogLines = 100;
static const pkgName = 'tech.lolli.toolbox';
static const jsonEncoder = JsonEncoder.withIndent(' ');
}