# is annoying in leading a subject too
This commit is contained in:
parent
fad451bc4f
commit
d22a89b672
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/usr/local/bin/ruby -w
|
||||||
|
|
||||||
# $Dwarf: ripnews.rb,v 1.69 2003/06/16 22:13:56 ward Exp $
|
# $Dwarf: ripnews.rb,v 1.70 2003/06/20 09:56:15 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
@ -385,7 +385,7 @@ def output_data(subject, mode, filename="", body="")
|
||||||
|
|
||||||
# de-crap subject...
|
# de-crap subject...
|
||||||
sub = subject.sub(/\s*$/, "") # strip trailing spaces
|
sub = subject.sub(/\s*$/, "") # strip trailing spaces
|
||||||
sub.sub!(/^[\s\.!-]*/, "") # strip leading spaces, dots, exclamation points and dashes
|
sub.sub!(/^[\s\.!-#]*/, "") # strip leading spaces, dots, exclamation points, dashes and hashes
|
||||||
|
|
||||||
# decide on a filename
|
# decide on a filename
|
||||||
if @config[group].has_key?("-L") and @config[group]["-L"]
|
if @config[group].has_key?("-L") and @config[group]["-L"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue