Replace spaces with underscores in configs.
PiperOrigin-RevId: 191004828
diff --git a/src/TulsiGenerator/TulsiGeneratorConfig.swift b/src/TulsiGenerator/TulsiGeneratorConfig.swift
index 68a3480..35f1c77 100644
--- a/src/TulsiGenerator/TulsiGeneratorConfig.swift
+++ b/src/TulsiGenerator/TulsiGeneratorConfig.swift
@@ -73,9 +73,9 @@
static let PathFiltersKey = "sourceFilters"
static let AdditionalFilePathsKey = "additionalFilePaths"
- /// Returns a copy of the given filename sanitized by replacing path separators.
+ /// Returns a copy of the given filename sanitized by replacing path separators and spaces.
public static func sanitizeFilename(_ filename: String) -> String {
- return filename.replacingOccurrences(of: "/", with: "_")
+ return filename.replacingOccurrences(of: "/", with: "_").replacingOccurrences(of: " ", with: "_")
}
// Tries to resolve a URL to the Bazel exectuable via: