Sha256: 75847c366597e7a1e47eae886c1673351ab2befa85eb4e4c2f2ae1609b1fa461

Contents?: true

Size: 492 Bytes

Versions: 11

Compression:

Stored size: 492 Bytes

Contents

I"à(function() {
  App.Helpers.Text = (function() {
    function Text(opts) {
      if (opts == null) {
        opts = {};
      }
    }

    Text.prototype.simpleFormat = function(str) {
      str = str.replace(/\r\n?/, "\n");
      str = $.trim(str);
      if (str.length > 0) {
        str = str.replace(/\n\n+/g, '</p><p>');
        str = str.replace(/\n/g, '<br>');
        str = '<p>' + str + '</p>';
      }
      return str;
    };

    return Text;

  })();

}).call(this);
:ET

Version data entries

11 entries across 4 versions & 1 rubygems

Version Path
loco-rails-1.0.2 test/dummy/tmp/cache/assets/sprockets/v3.0/OmI0zSUtJY050vZRDaw1YLlCIgdXvU69gVNPzyxKmMI.cache
loco-rails-1.0.2 test/dummy/tmp/cache/assets/test/sprockets/v3.0/XC9lC_kpAzz5bHxFRQE5wr0rRUUR4LmeGoIxYGHU7kw.cache
loco-rails-1.0.2 test/dummy/tmp/cache/assets/sprockets/v3.0/XC9lC_kpAzz5bHxFRQE5wr0rRUUR4LmeGoIxYGHU7kw.cache
loco-rails-1.0.1 test/dummy/tmp/cache/assets/sprockets/v3.0/OmI0zSUtJY050vZRDaw1YLlCIgdXvU69gVNPzyxKmMI.cache
loco-rails-1.0.1 test/dummy/tmp/cache/assets/sprockets/v3.0/XC9lC_kpAzz5bHxFRQE5wr0rRUUR4LmeGoIxYGHU7kw.cache
loco-rails-1.0.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/XC9lC_kpAzz5bHxFRQE5wr0rRUUR4LmeGoIxYGHU7kw.cache
loco-rails-1.0.0 test/dummy/tmp/cache/assets/sprockets/v3.0/OmI0zSUtJY050vZRDaw1YLlCIgdXvU69gVNPzyxKmMI.cache
loco-rails-1.0.0 test/dummy/tmp/cache/assets/sprockets/v3.0/XC9lC_kpAzz5bHxFRQE5wr0rRUUR4LmeGoIxYGHU7kw.cache
loco-rails-1.0.0 test/dummy/tmp/cache/assets/test/sprockets/v3.0/XC9lC_kpAzz5bHxFRQE5wr0rRUUR4LmeGoIxYGHU7kw.cache
loco-rails-0.0.1 test/dummy/tmp/cache/assets/test/sprockets/v3.0/XC9lC_kpAzz5bHxFRQE5wr0rRUUR4LmeGoIxYGHU7kw.cache
loco-rails-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/v3.0/XC9lC_kpAzz5bHxFRQE5wr0rRUUR4LmeGoIxYGHU7kw.cache