Skip to content

Commit 664e664

Browse files
author
Antonio Salinas
authored
Fixed invalid component name error (#432)
1 parent 6e63e35 commit 664e664

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/app/azldev/core/sources/sourceprep.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ func (p *sourcePreparerImpl) postProcessSources(
238238
func synthesizeMacroLoadOverlays(macrosFileName string) ([]projectconfig.ComponentOverlay, error) {
239239
// Basic check that the macros file name is valid and doesn't require escaping.
240240
if strings.ContainsFunc(macrosFileName, func(r rune) bool {
241-
return !unicode.IsLetter(r) && !unicode.IsDigit(r) && r != '.' && r != '-' && r != '_'
241+
return !unicode.IsLetter(r) && !unicode.IsDigit(r) && r != '.' && r != '-' && r != '_' && r != '+'
242242
}) {
243243
return nil, fmt.Errorf(
244244
"macros file name %#q contains invalid characters; does the component name contain invalid characters?",

0 commit comments

Comments
 (0)