mirror of
https://github.com/jimeh/build-emacs-for-macos.git
synced 2026-02-19 04:56:39 +00:00
Add support for naming release and builds accordingly when given a git
ref for a pretest (90 or above patch number) or release
candidate ("-rcX" at the end of the tag).
10 lines
163 B
Go
10 lines
163 B
Go
package sanitize
|
|
|
|
import "regexp"
|
|
|
|
var nonAlphaNum = regexp.MustCompile(`[^\w_-]+`)
|
|
|
|
func String(s string) string {
|
|
return nonAlphaNum.ReplaceAllString(s, "-")
|
|
}
|