[glibmm/gmmproc-refactor] Fix parsing of conversions file.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/gmmproc-refactor] Fix parsing of conversions file.
- Date: Wed, 6 Jun 2012 07:11:42 +0000 (UTC)
commit 8c58879f021faeefcc538dd08316f30be7b3b74d
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Wed Apr 18 05:18:26 2012 +0200
Fix parsing of conversions file.
tools/pm/Common/ConversionsStore.pm | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tools/pm/Common/ConversionsStore.pm b/tools/pm/Common/ConversionsStore.pm
index 4ee5788..5d35b09 100644
--- a/tools/pm/Common/ConversionsStore.pm
+++ b/tools/pm/Common/ConversionsStore.pm
@@ -286,7 +286,7 @@ sub add_from_file ($$)
foreach my $line (@lines)
{
++$line_num;
- $line =~ s/\s*#.*//;
+ $line =~ s/^\s*#.*//;
$line = Common::Util::string_trim ($line);
next unless $line;
if ($expect_brace)
@@ -300,7 +300,7 @@ sub add_from_file ($$)
}
elsif (defined $from and defined $to)
{
- if ($line =~ /\s*(\w+)\s*:\s*(.*)$/)
+ if ($line =~ /^\s*(\w+)\s*:\s*(.*)$/)
{
my $transfer_str = $1;
my $transfer = $2;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]