Project

General

Profile

« Previous | Next » 

Revision 14133

web/username_prefix.php: remove padding used to visually separate elements: documented that this leaves embedded _ (eg. x_y) untouched

View differences:

trunk/web/username_prefix.php
11 11
	
12 12
	# remove padding used to visually separate elements: x__@y__@url -> x@y@url
13 13
	# also remove leading __ that indicates internal field: __x@url -> x@url
14
	# this leaves embedded __ (eg. x__y) untouched
14 15
	$path = preg_replace('/\b__|__\b/', '', $path);
15 16
	
16 17
	# remove insertion comments: [c]x[d]@url -> x@url

Also available in: Unified diff