Revision 13725
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/web/username_prefix.php | ||
---|---|---|
24 | 24 |
# the website with the new value after the : |
25 | 25 |
$path = preg_replace('/\[.*?\]/', '', $path); |
26 | 26 |
|
27 |
# remove deletion comments: (c_)x(_d)@url -> c_x_d@url
|
|
27 |
# remove deletion comments: (c_)x@url & (-c_-)x@url -> c_x@url
|
|
28 | 28 |
# use () because in editing, () denotes something to remove |
29 | 29 |
# deletion indicates that the semantic meaning of the () portion does not |
30 | 30 |
# apply, even though it's included in the linked term name |
31 |
$path = preg_replace('/[()]/', '', $path);
|
|
31 |
$path = preg_replace('/\(-?|-?\)/', '', $path);
|
|
32 | 32 |
|
33 | 33 |
# translate reverse @-paths into forward .-paths |
34 | 34 |
$path = implode(".", array_reverse(explode("@", $path))); |
Also available in: Unified diff
web/username_prefix.php: deletion comments: also support strikethrough syntax for clarity: (
c_)x@url -> c_x@url