1 | // does not detect relative urls starting with a letter |
2 | sbool isRelativeURL(S s) { |
3 | ret startsWithOneOf(s, "/", "./", "../"); |
4 | } |
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: | 147 / 186 |
Version history: | 2 change(s) |
Referenced in: | [show references] |