Skip to content

Instantly share code, notes, and snippets.

@chrisforrette
Last active December 17, 2015 04:29
Show Gist options
  • Save chrisforrette/5550887 to your computer and use it in GitHub Desktop.
Save chrisforrette/5550887 to your computer and use it in GitHub Desktop.
(smartquote [s]
(-> s
(string/replace #"\"([^\"]*)\"" "“$1”")
(string/replace #"(^'|(\s)+')" "$2‘")
(string/replace #"'" "’")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment