-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #603 Signed-off-by: Cintia Sanchez Garcia <[email protected]>
- Loading branch information
1 parent
e836175
commit d11df7c
Showing
2 changed files
with
12 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { REGEX_DASH } from '../data'; | ||
|
||
// `badgeContent` message needs double dash instead of single dash, | ||
// due to single dash being used as a separator by shields.io | ||
// https://shields.io/badges/static-badge | ||
const formatShieldsBadgeContent = (n: string): string => { | ||
return n.replace(REGEX_DASH, '--'); | ||
}; | ||
|
||
export default formatShieldsBadgeContent; |