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

4
LINES

< > BotCompany Repo | #1032262 // isRelativeURL

JavaX fragment (include)

// does not detect relative urls starting with a letter
sbool isRelativeURL(S s) {
  ret startsWithOneOf(s, "/", "./", "../");
}

Author comment

Began life as a copy of #1001411

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032262
Snippet name: isRelativeURL
Eternal ID of this version: #1032262/3
Text MD5: ccf1e74386a13a47d9ceee54950e6fce
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-22 17:52:30
Source code size: 131 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 77 / 112
Version history: 2 change(s)
Referenced in: [show references]