1
0
Fork 0
forked from len0rd/rockbox

Fix the target pattern matching in genlang. Not sure if it is the 'right' fix, but it unbreaks the e200 build for me.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18903 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Magnus Holmgren 2008-10-28 19:40:53 +00:00
parent 74b935c893
commit afd2f681d1

View file

@ -139,7 +139,7 @@ sub trim {
sub match { sub match {
my ($string, $pattern)=@_; my ($string, $pattern)=@_;
$pattern =~ s/\*/.?*/g; $pattern =~ s/\*/.*/g;
$pattern =~ s/\?/./g; $pattern =~ s/\?/./g;
return ($string =~ /^$pattern\z/); return ($string =~ /^$pattern\z/);