зеркало из https://github.com/mozilla/pjs.git
Add trim() function from Bonsai to fix cvsquery.pl.
This commit is contained in:
Родитель
1a31679d06
Коммит
10ce419e41
|
@ -432,6 +432,14 @@ sub shell_escape {
|
|||
return $file;
|
||||
}
|
||||
|
||||
# Trim whitespace from front and back.
|
||||
sub trim {
|
||||
($_) = (@_);
|
||||
s/^\s+//g;
|
||||
s/\s+$//g;
|
||||
return $_;
|
||||
}
|
||||
|
||||
sub tb_load_treedata($) {
|
||||
my ($tree) = @_;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче