this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

*throws u into the sun*

12Me21 9709f65f 2c681d8c

+6 -6
+3 -3
parse.js
··· 112 112 args.alt = rargs.named.alt 113 113 // todo: improve this 114 114 if (!type) { 115 - if (/[.](mp3|ogg|wav|m4a|flac)\b/i.test(url)) 115 + if (/[.](mp3|ogg|wav|m4a|flac|aac|oga|opus|wma)\b/i.test(url)) 116 116 type = 'audio' 117 - else if (/[.](mp4|mkv|mov|webm)\b/i.test(url)) 117 + else if (/[.](mp4|mkv|mov|webm|avi|flv|m4v|mpeg|mpg|ogv|ogm|ogx|wmv|xvid)\b/i.test(url)) 118 118 type = 'video' 119 119 else if (/^https?:[/][/](?:www[.])?(?:youtube.com[/]watch[?]v=|youtu[.]be[/]|youtube.com[/]shorts[/])[\w-]{11}/.test(url)) { 120 120 // todo: accept [start-end] args maybe? ··· 311 311 } 312 312 const ARG_REGEX = /.*?(?=])/y 313 313 const WORD_REGEX = /[^\s`^()+=\[\]{}\\|"';:,.<>/?!*]*/y 314 - const CODE_REGEX = /(?: *([-\w.+#$ ]+?) *(?![^\n]))?\n?([^]*?)(?:\n?```|$)/y // ack 314 + const CODE_REGEX = /(?: *([-\w.+#$ ]+?) *(?![^\n]))?\n?([^]*?)(?:\n```|$)/y // ack 315 315 316 316 const parse=(text)=>{ 317 317 let tree = {type: 'ROOT', content: [], prev: 'all_newline'}
+2 -2
testing/auto.html
··· 104 104 }, { 105 105 type:'message', 106 106 fields:'text,values,id,createDate,contentId,edited', 107 - query:`!valuelike({{m}},{{"${lang}"}}) AND edited = @true`, 108 - order:'id', 107 + query:`!valuelike({{m}},{{"${lang}"}}) AND text LIKE {{%\`\`\`%}}`, 108 + order:'id_desc', 109 109 limit:1000, 110 110 }, 111 111 ]).then(async (lmm)=>{
+1 -1
testing/parse-ref.js
··· 72 72 /(?:\[([^\]\n]*)\])? */y 73 73 74 74 const ARGS_CODE = // ... ``` 75 - /(?: *([-\w.+#$ ]+?) *(?![^\n]))?\n?([^]*?)(?:\n?```|$)/y // @@@ backported \n``` 75 + /(?: *([-\w.+#$ ]+?) *(?![^\n]))?\n?([^]*?)(?:\n```|$)/y // @@@ backported \n``` 76 76 77 77 PAT`[\n]?[}]${{ BLOCK_END: 0}}` 78 78 PAT`[\n]${{ NEWLINE: 0}}`