diff options
author | Eric Wong <e@80x24.org> | 2018-01-29 01:11:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-01-29 01:11:04 +0000 |
commit | 742d2337e5afdedb5489e4b9f965e5d34c6db49e (patch) | |
tree | 44423a6d4e47c0d78719f6dcf9a2e4d5a637b3ed | |
parent | 702e3ad47738363ab847f43155e047c7c6612f80 (diff) | |
download | dtas-742d2337e5afdedb5489e4b9f965e5d34c6db49e.tar.gz |
Oops, a Perlism crept in :x
-rwxr-xr-x | bin/dtas-readahead | 2 | ||||
-rw-r--r-- | lib/dtas/mlib.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/dtas-readahead b/bin/dtas-readahead index 6a8edf7..913bf07 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -75,7 +75,7 @@ rescue Errno::ENOENT => e # race, process is dead end def children_of(ppid) - `ps h -o pid --ppid=#{ppid}`.split(/\s+/s).map(&:to_i) + `ps h -o pid --ppid=#{ppid}`.split(/\s+/).map(&:to_i) end def expand_pid(pid) diff --git a/lib/dtas/mlib.rb b/lib/dtas/mlib.rb index 0945153..24393d5 100644 --- a/lib/dtas/mlib.rb +++ b/lib/dtas/mlib.rb @@ -66,7 +66,7 @@ class DTAS::Mlib # :nodoc: end def init_suffixes - `sox --help 2>/dev/null` =~ /\nAUDIO FILE FORMATS:\s*([^\n]+)/s + `sox --help 2>/dev/null` =~ /\nAUDIO FILE FORMATS:\s*([^\n]+)/ re = $1.split(/\s+/).map! { |x| Regexp.quote(x) }.join('|') @suffixes = Regexp.new("\\.(?:#{re}|yml)\\z", Regexp::IGNORECASE) end |