Sha256: a0c69927c501ad92c4f877d3364bcfc9677507cb7ddbb23efe75c43a48aabe73

Contents?: true

Size: 163 Bytes

Versions: 28

Compression:

Stored size: 163 Bytes

Contents

# -*- encoding : utf-8 -*-

class Phrase::Tool::TagValidator
  FORMAT = /\A[a-zA-Z0-9_-]+\z/
  
  def self.valid?(tag_name)
    (tag_name.to_s =~ FORMAT)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
phrase-0.4.14 lib/phrase/tool/tag_validator.rb
phrase-0.4.13 lib/phrase/tool/tag_validator.rb
phrase-0.4.12 lib/phrase/tool/tag_validator.rb
phrase-0.4.11 lib/phrase/tool/tag_validator.rb
phrase-0.4.10 lib/phrase/tool/tag_validator.rb
phrase-0.4.9 lib/phrase/tool/tag_validator.rb
phrase-0.4.8 lib/phrase/tool/tag_validator.rb
phrase-0.4.7 lib/phrase/tool/tag_validator.rb
phrase-0.4.6 lib/phrase/tool/tag_validator.rb
phrase-0.4.5 lib/phrase/tool/tag_validator.rb
phrase-0.4.4 lib/phrase/tool/tag_validator.rb
phrase-0.4.3 lib/phrase/tool/tag_validator.rb
phrase-0.4.2 lib/phrase/tool/tag_validator.rb
phrase-0.4.1 lib/phrase/tool/tag_validator.rb
phrase-0.4.0 lib/phrase/tool/tag_validator.rb
phrase-0.3.7 lib/phrase/tool/tag_validator.rb
phrase-0.3.6 lib/phrase/tool/tag_validator.rb
phrase-0.3.5 lib/phrase/tool/tag_validator.rb
phrase-0.3.4 lib/phrase/tool/tag_validator.rb
phrase-0.3.3 lib/phrase/tool/tag_validator.rb