Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
def auto_bizman(text) if match = text.match(/.*?(@)((?:[_a-zA-Z0-9]+))(:|\s)/i) user = match[2] text.gsub! user, "<a href='#{app_url}#{user}'>#{user}</a>" end text end
This paste will be private.
From the Design Piracy series on my blog: