everything related to duct tape audio suite (dtas)
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: dtas-all@nongnu.org
Subject: [PATCH] get rid of Windows-31J regexps
Date: Mon, 29 Jan 2018 01:12:42 +0000	[thread overview]
Message-ID: <20180129011242.27377-1-e@80x24.org> (raw)

Oops, a Perlism crept in :x
---
 bin/dtas-readahead | 2 +-
 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 @@ def seek_to_cur_pos(cur_pid, fp)
 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 @@ def initialize(db)
   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
-- 
EW



                 reply	other threads:[~2018-01-29  1:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://80x24.org/dtas/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180129011242.27377-1-e@80x24.org \
    --to=e@80x24.org \
    --cc=dtas-all@nongnu.org \
    --subject='Re: [PATCH] get rid of Windows-31J regexps' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	../../dtas.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).