mirror of
https://github.com/openfaas/faas.git
synced 2025-06-19 12:36:40 +00:00
Includes fix for reconnection bug to NATS Streaming Signed-off-by: Alex Ellis <alexellis2@gmail.com>
10 lines
195 B
Go
10 lines
195 B
Go
package nats
|
|
|
|
import "regexp"
|
|
|
|
var supportedCharacters = regexp.MustCompile("[^a-zA-Z0-9-_]+")
|
|
|
|
func GetClientID(value string) string {
|
|
return supportedCharacters.ReplaceAllString(value, "_")
|
|
}
|