From 56a6d59237450bada8b92e5dfb87d07e005db3c4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 29 Apr 2003 12:38:32 +0000 Subject: Anchor the regexes better, some of them caused problems with perl 5.8. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3629 a1c6a512-1295-4272-9138-f99709370657 --- tools/binlang | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/binlang') diff --git a/tools/binlang b/tools/binlang index 2f3753a7cd..bb47238db7 100755 --- a/tools/binlang +++ b/tools/binlang @@ -60,7 +60,7 @@ while() { } # get rid of DOS newlines $_ =~ s/\r//g; - if($_ =~ / *([a-z]+): *(.*)/) { + if($_ =~ /^ *([a-z]+): *(.*)/) { ($var, $value) = ($1, $2); $set{$var} = $value; @@ -75,13 +75,13 @@ while() { close(ENG); while() { - if($_ =~ / *\#/) { + if($_ =~ /^ *\#/) { # comment next; } # get rid of DOS newlines $_ =~ s/\r//g; - if($_ =~ / *([a-z]+): *(.*)/) { + if($_ =~ /^ *([a-z]+): *(.*)/) { ($var, $value) = ($1, $2); # print "$var => $value\n"; -- cgit v1.2.3