Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit fe02545

Browse files
authored
Merge pull request #72 from pwa-builder/downloadIconsSupportSrc
Make name sanitization step consistent.
2 parents 22c8ba6 + c7f762c commit fe02545

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/projectBuilder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function createApps (w3cManifestInfo, rootDir, platforms, options, href, callbac
111111
}
112112

113113
// determine the path where the app will be created
114-
options.appName = utils.sanitizeName(w3cManifestInfo.content.short_name);
114+
options.appName = utils.sanitizeName(w3cManifestInfo.content.short_name.replace(/[^a-zA-Z0-9]/g, '_'));
115115
var generatedAppDir = path.join(rootDir, options.appName);
116116

117117
// Add timestamp to manifest information for telemetry purposes only

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pwabuilder-lib",
3-
"version": "2.1.3",
3+
"version": "2.1.4",
44
"description": "PWA Builder Core Library",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)