diff options
author | Richard Carlsson <[email protected]> | 2011-08-02 21:55:33 +0200 |
---|---|---|
committer | Richard Carlsson <[email protected]> | 2011-09-25 20:29:13 +0200 |
commit | d11d6acb3cea2cb750b69e23811b31f6248aac80 (patch) | |
tree | cdd2e02d4ba96cd67bc688fd1d5d526902cf5d6a /lib/edoc/src | |
parent | 53cf0b70c705e0bf6c09f83f2ce2709d79593ce6 (diff) | |
download | otp-d11d6acb3cea2cb750b69e23811b31f6248aac80.tar.gz otp-d11d6acb3cea2cb750b69e23811b31f6248aac80.tar.bz2 otp-d11d6acb3cea2cb750b69e23811b31f6248aac80.zip |
recognize some more URI schemas in wiki text, in particular https
Diffstat (limited to 'lib/edoc/src')
-rw-r--r-- | lib/edoc/src/edoc_wiki.erl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/edoc/src/edoc_wiki.erl b/lib/edoc/src/edoc_wiki.erl index 2f2d14853c..33e687fe63 100644 --- a/lib/edoc/src/edoc_wiki.erl +++ b/lib/edoc/src/edoc_wiki.erl @@ -249,10 +249,20 @@ expand_triple([], L, _, L0) -> expand_uri("http:/" ++ Cs, L, As) -> expand_uri(Cs, L, "/:ptth", As); +expand_uri("https:/" ++ Cs, L, As) -> + expand_uri(Cs, L, "/:sptth", As); expand_uri("ftp:/" ++ Cs, L, As) -> expand_uri(Cs, L, "/:ptf", As); expand_uri("file:/" ++ Cs, L, As) -> expand_uri(Cs, L, "/:elif", As); +expand_uri("mailto:/" ++ Cs, L, As) -> + expand_uri(Cs, L, "/:otliam", As); +expand_uri("nfs:/" ++ Cs, L, As) -> + expand_uri(Cs, L, "/:sfn", As); +expand_uri("shttp:/" ++ Cs, L, As) -> + expand_uri(Cs, L, "/:ptths", As); +expand_uri("xmpp:/" ++ Cs, L, As) -> + expand_uri(Cs, L, "/:ppmx", As); expand_uri(Cs, L, As) -> expand(Cs, L, [$[ | As]). |