Sha256: 139d519cb653dd3f4231e48dba6a4323a7a9583645057ce5156a527a2e15c5e4
Contents?: true
Size: 402 Bytes
Versions: 2
Compression:
Stored size: 402 Bytes
Contents
Backbone = require('backbone') module.exports = reload: ()-> Backbone.history.loadUrl() isMobile: ()-> /(iPhone|iPod|iPad).*AppleWebKit/i.test(navigator.userAgent) parseCardLink: (html)-> html.replace /\[\[(.+?)\]\]/g, (match, p1)-> if p1.match /<("[^"]*"|'[^']*'|[^'">])*>/g match else ['<a href="#/', encodeURIComponent(p1), '">', p1, '</a>'].join('')
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
carte-server-1.0.11 | lib/carte/client/helpers.coffee |
carte-server-1.0.10 | lib/carte/client/helpers.coffee |