basestylo/Tweakphoeus

View on GitHub
lib/tweakphoeus/helpers.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Tweakphoeus
  # Helper functions for common behavious across all classes
  module Helpers
    def get_domain(domain)
      domain.match(%r{([a-zA-Z0-9]+://|)([^/]+)})[2].gsub(/^\./, '')
    end
  end
end