INNER CODE UNIT · JavaScript
CHECK_REGEX
albertincx/formatbot1 · src/api/utils/index.js:6
const CHECK_REGEX = /(p_cache|content|custom|puppet|wget|cached|no_db)_force(.*?)$/;
const CHECK_REGEX2 = /(no_db)_force(.*?)$/;
function commandNoDb(txt) {
const found = txt.match(CHECK_REGEX2);
return found && found[1];
}
function commandCheck(txt) {
const found = txt.match(CHECK_REGEX);
return found && found[1];
}
function fetchTimeout(u, connectTimeout = 10000) {
return fetch(u, {