Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
export default function (string) {
return string
.replace(/[\t\r\n]/g, ' ')
.replace(/ +/g, ' ')
.replace(/^ /, '')
.replace(/ $/, '');
}