Sha256: 30f3147c1be2ab8070cbaa0f831dc5fc2d8208ef04da90414da12f6002b0dab2
Contents?: true
Size: 735 Bytes
Versions: 2
Compression:
Stored size: 735 Bytes
Contents
# encoding: utf-8 require 'set' module RsegFilter class Symbol @@separators = Set.new ['`', '[', ']', '、', '=', '‘', ';', '。', '|', '?', '》', '《', ':', '“', '{', '}', ')', '(', '*', '…', '#', '!', '~', '’', '”', '〕', '〈', '〉', '「', '」', '『', '』', '〖', '〗', '【', '】', '<', '>', '`', '~', '!', '@', '#', '^', '&', '*', '\\', '(', ')', '=', '{', '}', '[', ']', '|', ';', ':', "'", '<', '>', '?', "\n", "\t", "\r", ' ', '-', '/', '+', ',', ' '] def self.filter(char) @@separators.include?(char) ? :symbol : char end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
harmonious_check-0.0.2 | lib/harmonious_dictionary/filters/symbol.rb |
filter_word-0.0.2 | lib/filter_word/filters/symbol.rb |