-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🐞 panic in fs.go #824 * fix issue #875 Signed-off-by: Kirill Danshin <[email protected]> * improve issue 875 Co-authored-by: Fenny <[email protected]> * Update header.go * Update header.go Co-authored-by: Kirill Danshin <[email protected]> * remove foldReplacer * Improve removeNewLines Start replacing at the first character found, use bytes.Indexbyte to make the function signature more logical. Both bytes.indexByte and strings.IndexByte use exactly the same code: https://github.com/golang/go/blob/0c703b37dffe74d3fffc04347884bb0ee2fba5b3/src/internal/bytealg/indexbyte_amd64.s#L8-L20 Co-authored-by: wernerr <[email protected]> Co-authored-by: wernerr <[email protected]> Co-authored-by: Fenny <[email protected]> Co-authored-by: Erik Dubbelboer <[email protected]>
- Loading branch information
1 parent
ec4aa43
commit d0dfbd4
Showing
3 changed files
with
140 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters