Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
56 lines
2.2 KiB
Plaintext
56 lines
2.2 KiB
Plaintext
'use strict';
|
|
|
|
var dateSplits = require('./dateSplits.cjs');
|
|
|
|
const DATE_MAX_YEAR = 2050;
|
|
const DATE_MIN_YEAR = 1000;
|
|
const DATE_SPLITS = dateSplits;
|
|
const BRUTEFORCE_CARDINALITY = 10;
|
|
const MIN_GUESSES_BEFORE_GROWING_SEQUENCE = 10000;
|
|
const MIN_SUBMATCH_GUESSES_SINGLE_CHAR = 10;
|
|
const MIN_SUBMATCH_GUESSES_MULTI_CHAR = 50;
|
|
const MIN_YEAR_SPACE = 21;
|
|
// \xbf-\xdf is a range for almost all special uppercase letter like Ä and so on
|
|
const START_UPPER = /^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/;
|
|
const END_UPPER = /^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/;
|
|
// \xdf-\xff is a range for almost all special lowercase letter like ä and so on
|
|
const ALL_UPPER = /^[A-Z\xbf-\xdf]+$/;
|
|
const ALL_UPPER_INVERTED = /^[^a-z\xdf-\xff]+$/;
|
|
const ALL_LOWER = /^[a-z\xdf-\xff]+$/;
|
|
const ALL_LOWER_INVERTED = /^[^A-Z\xbf-\xdf]+$/;
|
|
const ONE_LOWER = /[a-z\xdf-\xff]/;
|
|
const ONE_UPPER = /[A-Z\xbf-\xdf]/;
|
|
const ALPHA_INVERTED = /[^A-Za-z\xbf-\xdf]/gi;
|
|
const ALL_DIGIT = /^\d+$/;
|
|
const REFERENCE_YEAR = new Date().getFullYear();
|
|
const REGEXEN = {
|
|
recentYear: /19\d\d|200\d|201\d|202\d/g
|
|
};
|
|
/* Separators */
|
|
const SEPERATOR_CHARS = [' ', ',', ';', ':', '|', '/', '\\', '_', '.', '-'];
|
|
const SEPERATOR_CHAR_COUNT = SEPERATOR_CHARS.length;
|
|
|
|
exports.ALL_DIGIT = ALL_DIGIT;
|
|
exports.ALL_LOWER = ALL_LOWER;
|
|
exports.ALL_LOWER_INVERTED = ALL_LOWER_INVERTED;
|
|
exports.ALL_UPPER = ALL_UPPER;
|
|
exports.ALL_UPPER_INVERTED = ALL_UPPER_INVERTED;
|
|
exports.ALPHA_INVERTED = ALPHA_INVERTED;
|
|
exports.BRUTEFORCE_CARDINALITY = BRUTEFORCE_CARDINALITY;
|
|
exports.DATE_MAX_YEAR = DATE_MAX_YEAR;
|
|
exports.DATE_MIN_YEAR = DATE_MIN_YEAR;
|
|
exports.DATE_SPLITS = DATE_SPLITS;
|
|
exports.END_UPPER = END_UPPER;
|
|
exports.MIN_GUESSES_BEFORE_GROWING_SEQUENCE = MIN_GUESSES_BEFORE_GROWING_SEQUENCE;
|
|
exports.MIN_SUBMATCH_GUESSES_MULTI_CHAR = MIN_SUBMATCH_GUESSES_MULTI_CHAR;
|
|
exports.MIN_SUBMATCH_GUESSES_SINGLE_CHAR = MIN_SUBMATCH_GUESSES_SINGLE_CHAR;
|
|
exports.MIN_YEAR_SPACE = MIN_YEAR_SPACE;
|
|
exports.ONE_LOWER = ONE_LOWER;
|
|
exports.ONE_UPPER = ONE_UPPER;
|
|
exports.REFERENCE_YEAR = REFERENCE_YEAR;
|
|
exports.REGEXEN = REGEXEN;
|
|
exports.SEPERATOR_CHARS = SEPERATOR_CHARS;
|
|
exports.SEPERATOR_CHAR_COUNT = SEPERATOR_CHAR_COUNT;
|
|
exports.START_UPPER = START_UPPER;
|
|
//# sourceMappingURL=const.cjs.map
|