MCPcopy Index your code
hub / github.com/christkv/node-git / chomp

Function chomp

lib/git/commit.js:94–96  ·  view source on GitHub ↗
(raw_text)

Source from the content-addressed store, hash-verified

92
93// Chomp text removing end carriage returns
94var chomp = function chomp(raw_text) {
95 return raw_text.replace(/(\n|\r)+$/, '');
96}
97
98// Fetch the short form of an id
99Commit.prototype.id_abbrev = function(callback) {

Callers 1

commit.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected