Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0331/2

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


plumb/basic: allow . in http names
 [rsc] --rw-rw-r-- M 128579 glenda sys 2878 Mar 31 09:10 sys/lib/plumb/basic
	/n/sourcesdump/2006/0331/plan9/sys/lib/plumb/basic:9,15 - 
	/n/sourcesdump/2006/0401/plan9/sys/lib/plumb/basic:9,15
	  
	  # cheap http/gif,jpeg,ps,pdf renderer
	  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|png|PNG)'
	+ 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|png|PNG)'
	  plumb start rc -c 'hget '$0' | page -w'
	  
	  # rtf files go to wdoc2txt


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].