Download Jar. Libraryless. Click here for Pure Java version (880L/6K).
!7 p { assertFalse(isProperFileName("")); assertFalse(isProperFileName(".")); assertFalse(isProperFileName("..")); assertFalse(isProperFileName("/")); assertFalse(isProperFileName("a/")); assertFalse(isProperFileName(".a")); assertTrue(isProperFileName("a.")); assertFalse(isProperFileName("c:")); assertFalse(isProperFileName("\\")); assertTrue(isProperFileName("webs-made.txt.part1.gz")); assertTrue(isProperFileName("CAPITAL")); print("OK"); }
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: | #1011856 |
| Snippet name: | Test isProperFileName |
| Eternal ID of this version: | #1011856/3 |
| Text MD5: | 91be6d14881dbdcf0b71b93d70fdd0f7 |
| Transpilation MD5: | 81b944208083d111a93a457ff221bae3 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-11-08 03:36:37 |
| Source code size: | 486 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 771 / 1648 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |