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

3
LINES

< > BotCompany Repo | #1011855 // isProperFileName

JavaX fragment (include)

static bool isProperFileName(S s) {
  ret nempty(s) && !startsWith(s, ".") && regexpIC("[a-z0-9-._]+", s).matches();
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1011855
Snippet name: isProperFileName
Eternal ID of this version: #1011855/3
Text MD5: 93f4203d56da92d4aa797df2b53f2518
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-08 03:36:05
Source code size: 120 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 371 / 392
Version history: 2 change(s)
Referenced in: [show references]