diff --git a/Library/Sources/Internal/Extensions/String+Constants.swift b/Library/Sources/Internal/Extensions/String+Constants.swift deleted file mode 100644 index 7e38bef..0000000 --- a/Library/Sources/Internal/Extensions/String+Constants.swift +++ /dev/null @@ -1,9 +0,0 @@ -extension String { - enum Format { - enum Path { - static let data = "/data/%@" - static let docs = "/docs/%@" - static let root = "/%@" - } - } -} diff --git a/Library/Sources/Internal/Extensions/String+Formats.swift b/Library/Sources/Internal/Extensions/String+Formats.swift new file mode 100644 index 0000000..61faa98 --- /dev/null +++ b/Library/Sources/Internal/Extensions/String+Formats.swift @@ -0,0 +1,14 @@ +extension String { + /// A namespace that defines the format patterns used to generate strings. + enum Format { + /// A namespace that defines the format patterns used to generate relative path representations. + enum Path { + /// A representation of the format pattern used to generate relative paths that starts with the `/data` string. + static let data = "/data/%@" + /// A representation of the format pattern used to generate relative paths that starts with the `/docs` string. + static let docs = "/docs/%@" + /// A representation of the format pattern used to generate relative paths that starts with the `/` string. + static let root = "/%@" + } + } +}