Sha256: 596f2f70532ee3a9fdb06628714b7a9b2769bb7ae6b8688390489b4e6bd2bbbc

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

module Niconico
  module Helper
    def mylist?(url)
      return true if url =~ /mylist\/\d+/
      false
    end

    def escape_string(str)
      str.gsub(/[\/\\?*:|><]/) {|m| [m.ord + 65248].pack('U*')}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nv-1.2.2 lib/nv/niconico/helper.rb
nv-1.2.1 lib/nv/niconico/helper.rb