Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1031295 // tok_safeify - convert typical function calls to their safe (sandboxed) versions. Maybe we don't need this. Just make all the functions safe to begin with

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3517L/21K).

svoid tok_safeify(LS tok) {
  jreplace(tok, "map <id> {", "safeMap $2 {");
  jreplace(tok, "map(", "safeMap(");
}

Author comment

Began life as a copy of #1031294

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031295
Snippet name: tok_safeify - convert typical function calls to their safe (sandboxed) versions. Maybe we don't need this. Just make all the functions safe to begin with
Eternal ID of this version: #1031295/1
Text MD5: 7522d987f4b794c4840a5a4629bb1cde
Transpilation MD5: 6cf4ba9214eb627d1e3b259f3a758a31
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-04 14:46:14
Source code size: 116 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 133 / 189
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)