diff options
| author | Harald Sitter <apachelogger@ubuntu.com> | 2010-12-08 21:55:15 (GMT) |
|---|---|---|
| committer | Harald Sitter <apachelogger@ubuntu.com> | 2010-12-08 21:55:15 (GMT) |
| commit | 6c68a3ee7d4b50f999465c0f5d2391dd951a7935 (patch) | |
| tree | 735e8a555b5adc530951c1b9be603561c2f9624f | |
| parent | e1c4e42b8f41d19d700d3d93cd4ceade61aa91fc (diff) | |
fix regex for po files, to accept everything but forward slashes
| -rw-r--r-- | lib/l10ncore.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/l10ncore.rb b/lib/l10ncore.rb index 6e82c5a..a22100a 100644 --- a/lib/l10ncore.rb +++ b/lib/l10ncore.rb @@ -22,7 +22,7 @@ module L10nCore def po_finder(pos=Array.new) Dir.glob("**/**/Messages.sh").each do |file| File.readlines(file).each do |line| - line.match(/[\w]*\.pot/).to_a.each do |match| + line.match(/[^\/]*\.pot/).to_a.each do |match| pos << match.sub(".pot",".po") end end |
