Skip to content

Commit

Permalink
Fix issue with documents having white space in their names
Browse files Browse the repository at this point in the history
  • Loading branch information
tharikaGitHub committed Jul 2, 2024
1 parent 3dbc29b commit 31b0989
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public static void addDocumentationToArchive(String archivePath, Identifier iden
*/
private static String cleanFolderName(String name) {
// Replace everything but [a-zA-Z0-9.-]
return name.replaceAll("[^a-zA-Z0-9\\.\\-]", "_");
return name.replaceAll("[^a-zA-Z0-9\\.\\- ]", "_");

Check warning on line 495 in components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/ExportUtils.java

View check run for this annotation

Codecov / codecov/patch

components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/ExportUtils.java#L495

Added line #L495 was not covered by tests
}

/**
Expand Down

0 comments on commit 31b0989

Please sign in to comment.