1 | static S wikipedia_getRedirect(S raw) { |
2 | raw = trim(raw); |
3 | S p = "#REDIRECT"; |
4 | if (!containsNewLine(raw) && swic(raw, p) && endsWith(raw, "]]")) |
5 | ret dropPrefix("[[", trim(dropPrefixIgnoreCase(p, dropSuffix("]]", raw))).replace("_", " "); |
6 | null; |
7 | } |
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: | #1008022 |
Snippet name: | wikipedia_getRedirect |
Eternal ID of this version: | #1008022/6 |
Text MD5: | 657dbc4057a901373518c89e27d39f1c |
Author: | stefan |
Category: | javax / a.i. / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-10 14:18:46 |
Source code size: | 260 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 473 / 501 |
Version history: | 5 change(s) |
Referenced in: | [show references] |