We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 341f009 commit 392ecb7Copy full SHA for 392ecb7
1 file changed
internal/app/app.go
@@ -162,7 +162,7 @@ func regexReplaceAppNameInManifest(src []byte, appName string) []byte {
162
163
// regexReplaceAppNameInPackageJSON replaces the top-level "name" field in a package.json file
164
func regexReplaceAppNameInPackageJSON(src []byte, appName string) []byte {
165
- re := regexp.MustCompile(`(?m)^(\s*"name"\s*:\s*")([^"]*)(")`)
+ re := regexp.MustCompile(`(?m)^(\s{2}"name"\s*:\s*")([^"]*)(")`)
166
loc := re.FindSubmatchIndex(src)
167
if loc == nil {
168
return src
0 commit comments