sigma / gh.el

GitHub API library for Emacs
274 stars 74 forks source link

gh-sanitize-content: new function #98

Closed sigma closed 6 years ago

sigma commented 6 years ago

This function removes all non-unicode characters from arbitrary content. This can be used to ensure that the API call will not fail server-side to parse the request.

Since this is a lossy operation, warn the user.

Use-case: buffers that we want to gist can contain arbitrary content, but we still need to encode it.

This closes defunkt/gist.el#86

coveralls commented 6 years ago

Coverage Status

Coverage increased (+1.1%) to 26.413% when pulling 953b15115b02821de972c41684dbc5badbcd6836 on unicode-content into c8904c5a2154b9d60b579c1381181e66037badd7 on master.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+1.1%) to 26.413% when pulling 953b15115b02821de972c41684dbc5badbcd6836 on unicode-content into c8904c5a2154b9d60b579c1381181e66037badd7 on master.