/** * @version 0.0.4 * @param tableName {string} Table name or id. * @param [logResult] {boolean} Console.log the result before returning. **/
SUBSTITUTE( REGEX_REPLACE( REGEX_REPLACE( source, '(?s)((?P<b>\\bbase\\b)|(?P<b0>(?P<STRINGS>(\\x27(?P<sq1>[^\\x27\\x5c\n]*(\\x5c\\x27|[^\\x27\n])*)\\x27)|(\\x22(?P<dq1>[^\\x22\\x5c\n]*(\\x5c\\x22|[^\\x22\n])*)\\x22)|(\\x60(?P<bt1>[^\\x60\\x5c]*(\\x5c\\x60|[^\\x60])*)\\x60))|\\b((?P<bCo>console)|(?P<bCu>cursor)|(?P<bIn>input)|(?P<bOu>output)|(?P<bSe>session)|(?P<bRe>remoteFetchAsync)\\b)|.+?)+?){2,}', '$<b>\n$<bCo>\n$<bCu>\n$<bIn>\n$<bOu>\n$<bSe>\n$<bRe>'
IF(
compileMode,
"base.getTable('Modules').selectRecord"
& IF(
/** * @version 0.1.9a * @author Dominik Bošnjak * @async **/
const config = input.config({ title: 'Deduper',description:'Be careful not to accidentally delete something important! This simple deduper only cares about the primary fields your records.',items:[
/** * @version 0.1.0a * @author Dominik Bošnjak **/
/**
* @version 0.0.4
* @param tableName {string} Table name or id.
* @param [logResult] {boolean} Console.log the result before returning.
**/
/** * @param Code {string} * @param [displayResult] {boolean} * @returns {string} */
SWITCH( VALUE( {yourFieldName} & ""
/** * @version 0.0.21a * @author Dominik Bošnjak * @async **/
/** * @version 0.0.1 **/ function globalSearch(query){
/** * @version 0.0.1 * @author Dominik Bošnjak **/
{Content}
= BLANK(), {Content}
)) {Content}
, ' ', '' ) ) + 1 )arr => arr.sort(() => 0.5 - Math.random())
object => typeof object === 'function' && /^\s*class\s+/.test(object.toString())
array => array.length === new Set(array).size
REGEX_REPLACE(code,'(\\/{2}.*)','')
formula SPLIT_TAGS(Target: string)
REGEX_REPLACE( {Target}, '(([^",]+)|(["][^"]*){2})(.{2})?', '$2$3\n' )
IF( Flags, '(?' & REGEX_REPLACE( Flags, '(?U)(.*[(](?P<f>.)[)](?-U)[^(]*)', '$<f>'
hm = 'ok'
`console`
'base';
console3
const formula = ` REGEX_REPLACE( REGEX_REPLACE( SUBSTITUTE({@thisStats},', ','\n'), '(?i)((?P<chars>char(acter)?s?.?(count)?)|(?P<words>words?.?(count)?)|(?P<bytes>bytes?.?(count)?)|(?P<fileCount>#?(attachment)|(file)s?.?#?(length|count))|(?P<fileNames>(attachment)|(file)s|(.?names))|(?P<fileLinks>(attachment)|(file).?(urls)|((hyper)?links)|(hrefs))|(?P<lines>#?lines?.?#?(count)?#?)|(?P<sentenceCount>#?.?sentences?.?#?.?(count)?)|(?P<paraCount>#?.?paragraphs?.?#?.?(count)?)|(?P<avgW>av(era)?ge?.{0,2}Word.?(Length)?)|(?P<avgPara>av(era)?ge?.{0,2}Paragraph.?(Length)?)|(?P<avgSent>av(era)?ge?.{0,2}Sentence.?(Length)?)|(?P<id>(record.?)?id(\\s*[(]\\s*[)])?))', '❲$<words>: ' & LEN(