Sha256: 89c9e71339911b24a5ffff361bdb85b37195fdf335b58b4d0f33fdb535c2c8f1

Contents?: true

Size: 315 Bytes

Versions: 8

Compression:

Stored size: 315 Bytes

Contents

class Embeditor.Utility
    @stripProtocol: (str) ->
        str.replace(/^https?:/, "")


    @stripTrailingSlash: (str) ->
        str.replace(/\/$/, "")


    @convertProtocolToHttp: (str) ->
        str.replace(/^https:/, 'http:')


    @convertProtocolToHttps: (str) ->
        str.replace(/^http:/, 'https:')

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
embeditor-rails-2.2.0 app/assets/javascripts/embeditor/utility.js.coffee
embeditor-rails-2.0.1 app/assets/javascripts/embeditor/utility.js.coffee
embeditor-rails-2.0.0 app/assets/javascripts/embeditor/utility.js.coffee
embeditor-rails-2.0.0.beta app/assets/javascripts/embeditor/utility.js.coffee
embeditor-rails-1.1.1 app/assets/javascripts/embeditor/utility.js.coffee
embeditor-rails-1.1.0 app/assets/javascripts/embeditor/utility.js.coffee
embeditor-rails-1.0.1 app/assets/javascripts/embeditor/utility.js.coffee
embeditor-rails-0.1.0 app/assets/javascripts/embeditor/utility.js.coffee