diff --git a/src/tools/copyright.pl b/src/tools/copyright.pl
index a55228d6ec886b45c2c41053151959c19db46410..26343af97de77cf6118d4055e611be932cb1553b 100755
--- a/src/tools/copyright.pl
+++ b/src/tools/copyright.pl
@@ -46,7 +46,7 @@ sub wanted
 	{
 
 		# We only care about lines with a copyright notice.
-		next unless $line =~ m/$cc . *$pgdg /;
+		next unless $line =~ m/$cc.*$pgdg/;
 
 		# We stop when we've done one substitution.  This is both for
 		# efficiency and, at least in the case of this program, for