diff options
author | rsc <devnull@localhost> | 2007-04-03 12:49:27 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2007-04-03 12:49:27 +0000 |
commit | 41deef57ef8abbb64265cba6445f6bff5c99b455 (patch) | |
tree | ab527cb025b34739fe2beeb9d3e0e740d613933e | |
parent | fbc629a995a01ba357cdacc355a7f3eba41777fb (diff) | |
download | plan9port-41deef57ef8abbb64265cba6445f6bff5c99b455.tar.gz plan9port-41deef57ef8abbb64265cba6445f6bff5c99b455.tar.bz2 plan9port-41deef57ef8abbb64265cba6445f6bff5c99b455.zip |
plumb all urls, not just images (TheWhiteTiger)
-rw-r--r-- | plumb/basic | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/plumb/basic b/plumb/basic index 15bfbf16..6990aac7 100644 --- a/plumb/basic +++ b/plumb/basic @@ -17,20 +17,10 @@ plumb start web $data # urls go to web browser type is text -data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*\.(jpe?g|JPE?G|gif|GIF|ps|PS|pdf|PDF)' +data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*' plumb to web plumb start web $0 -# html goes to web browser -# uncomment if you want this behavior -# commented out is more like plan 9 -# -# type is text -# data matches '[a-zA-Z¡-0-9_\-./]+' -# data matches '([a-zA-Z¡-0-9_\-./]+)\.(html|htm|HTM|HTML)' -# arg isfile $0 -# plumb start web $file - # doc and rtf files go to wdoc2txt type is text data matches '[a-zA-Z¡-0-9_\-./]+' |