everything related to duct tape audio suite (dtas)
 help / color / mirror / Atom feed
* [PATCH] get rid of Windows-31J regexps
@ 2018-01-29  1:12 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2018-01-29  1:12 UTC (permalink / raw)
  To: dtas-all

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)
 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)
 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)
   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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-29  1:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-29  1:12 [PATCH] get rid of Windows-31J regexps Eric Wong

everything related to duct tape audio suite (dtas)

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://80x24.org/dtas-all
	git clone --mirror http://ou63pmih66umazou.onion/dtas-all

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 dtas-all dtas-all/ https://80x24.org/dtas-all \
	public-inbox-index dtas-all

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor: https://www.torproject.org/

code repositories for the project(s) associated with this inbox:


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git