Sha256: d6f7ec55f532f1f458a7658f74b4550bb491a2a4540cd22868ea8880e4640355

Contents?: true

Size: 162 Bytes

Versions: 5

Compression:

Stored size: 162 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

5 entries across 5 versions & 1 rubygems

Version Path
phrase-0.4.19 lib/phrase/tool/tag_validator.rb
phrase-0.4.18 lib/phrase/tool/tag_validator.rb
phrase-0.4.17 lib/phrase/tool/tag_validator.rb
phrase-0.4.16 lib/phrase/tool/tag_validator.rb
phrase-0.4.15 lib/phrase/tool/tag_validator.rb