mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
plumb all urls, not just images (TheWhiteTiger)
This commit is contained in:
parent
fbc629a995
commit
41deef57ef
1 changed files with 1 additions and 11 deletions
12
plumb/basic
12
plumb/basic
|
@ -17,20 +17,10 @@ plumb start web $data
|
||||||
|
|
||||||
# urls go to web browser
|
# urls go to web browser
|
||||||
type is text
|
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 to web
|
||||||
plumb start web $0
|
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
|
# doc and rtf files go to wdoc2txt
|
||||||
type is text
|
type is text
|
||||||
data matches '[a-zA-Z¡-0-9_\-./]+'
|
data matches '[a-zA-Z¡-0-9_\-./]+'
|
||||||
|
|
Loading…
Reference in a new issue