toId

fun String.toId(prefix: String = ""): String

Creates a string satisfying requirements for entity id in TeamCity. Can be used to generate an id from a name.

Parameters

prefix

an optional prefix to add to the id

Samples

_Samples.toId