Changeset 1000 ãç®åã«ãã¦ç¨ã¿ãããç¶ãã¦ããä»æ¥ãã®é ã§ããã
Plagger.pm ã® rewite_config ã§ãæ¸ãæãåã®å¤ãæ£è¦è¡¨ç¾ã®ã¡ã¿ãã£ã©ã¯ã¿ãå«ãã§ããã¨èª¤åä½ããã®ã§ patch. \Q \E ã§æ¬ãã ãã
--- lib/Plagger.pm (ãªãã¸ã§ã³ 999) +++ lib/Plagger.pm (ä½æ¥ã³ãã¼) @@ -86,7 +86,7 @@ # xxx this is a quick hack: It should be a YAML roundtrip maybe for my $task (@{ $self->{rewrite_tasks} }) { my($key, $old_value, $new_value ) = @$task; - if ($data =~ s/^(\s+$key:\s+)$old_value[ \t]*$/$1$new_value/m) { + if ($data =~ s/^(\s+$key:\s+)\Q$old_value\E[ \t]*$/$1$new_value/m) { $count++; } else { $self->log(error => "$key: $old_value not found in $self->{config_path}");
ãããããããä»ã¾ã§åé¡ã«ãªã£ã¦ããªãã¨ãããã¨ã¯ã(èªåãå«ãã¦) æ¡å¤ã¿ããªãã¹ã¯ã¼ãã«è¨å·é¡ã使ã£ã¦ããª(ã²ãã³ã²ãã³