Sha256: 6a742185d6a8cb3307f7795ca8c4558a3dd58b7d1e80a425b65e3596fc3637cd
Contents?: true
Size: 692 Bytes
Versions: 7
Compression:
Stored size: 692 Bytes
Contents
module RsegFilter class Symbol @@separators = ['`', '[', ']', '、', '=', '‘', ';', '。', '|', '?', '》', '《', ':', '“', '{', '}', ')', '(', '*', '…', '#', '!', '~', '’', '”', '〕', '〈', '〉', '「', '」', '『', '』', '〖', '〗', '【', '】', '<', '>', '`', '~', '!', '@', '#', '^', '&', '*', '\\', '(', ')', '=', '{', '}', '[', ']', '|', ';', ':', "'", '<', '>', '?', "\n", "\t", "\r", ' ', '-', '/', '+', ',', ' '] def self.filter(char) @@separators.include?(char) ? :symbol : char end end end
Version data entries
7 entries across 7 versions & 4 rubygems