Skip to content

Commit 3ee3d00

Browse files
committed
added exclamation mark
1 parent 92d7419 commit 3ee3d00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

objects/objects.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ func (o *objConfig) printToFile(filepath string, p *Printer) error {
322322
}
323323

324324
func (o *objConfig) getAGoodFileName() string {
325-
// This allows any letter or number from any language, plus _ and -
326-
reg := regexp.MustCompile(`[^\p{L}\p{N}_-]+`)
325+
// This allows any letter or number from any language, plus _, -, and !
326+
reg := regexp.MustCompile(`[^\p{L}\p{N}_!-]+`)
327327

328328
keyname, err := o.tryGetNonEmptyStr("Nickname")
329329
if err != nil {

0 commit comments

Comments
 (0)