Package jenkins.branch
Class NameMangler
java.lang.Object
jenkins.branch.NameMangler
Mangles names that are not nice so that they are safe to use on filesystem.
We try to keep names that are alpha-numeric and optionally contain the
-
character unmangled as long as they
are shorter than MAX_SAFE_LENGTH
characters. For all other names we mangle. In mangling we try to keep
the semantic meaning of separator characters like /\._
and space by mangling as -
. All other
characters are encoded using _
as a prefix for the hex code. Finally we inject the hash with .
used
to identify the hash portion.- Since:
- 2.0.0
-
Method Summary
-
Method Details
-
apply
-