Project

General

Profile

« Previous | Next » 

Revision 13718

web/username_prefix.php: comments: use [] instead of () because in writing, [] denotes insertion, while () (as an editing mark) denotes something to remove

View differences:

trunk/web/username_prefix.php
16 16
	# the _ are needed to work in Google spreadsheets
17 17
	$path = str_replace('_-_', '', $path);
18 18
	
19
	# remove comments: (c)x(d)@url -> x@url
19
	# remove comments: [c]x[d]@url -> x@url
20
	# use [] because in writing, [] denotes insertion
20 21
	# can't use : for this because Firefox will not update the "password" for
21 22
	#  the website with the new value after the :
22
	$path = preg_replace('/\(.*?\)/', '', $path);
23
	$path = preg_replace('/\[.*?\]/', '', $path);
23 24
	
24 25
	# translate reverse @-paths into forward .-paths
25 26
	$path = implode(".", array_reverse(explode("@", $path)));

Also available in: Unified diff