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

3
LINES

< > BotCompany Repo | #1016317 // containsUnsafePlatformCmdLineChar - characters that should be escaped in command lines

JavaX fragment (include)

static bool containsUnsafePlatformCmdLineChar(S s) {
  ret containsRegexp(s, "[\\|&;<>()\\$`\\\\\"' \t\r\n\\*\\?\\[#~=%]");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016317
Snippet name: containsUnsafePlatformCmdLineChar - characters that should be escaped in command lines
Eternal ID of this version: #1016317/1
Text MD5: 9e528670f65f4db8b7822dabc6cf0f8f
Author: stefan
Category: javax / os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-14 12:14:16
Source code size: 127 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 351 / 374
Referenced in: [show references]