Skip to content

Commit

Permalink
fix: fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
CrizanTottaVx committed Jun 25, 2022
1 parent 67d5e8c commit b64331f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generators/src/packagejson.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const optionalPackages = {

const defaultOptions = (options) => {
return {
name: options.name ? options.name.replace(/\s/g, '').replace(/[^\w\s]/gi, '') : 'herbs-project',
name: options.name ? options.name.replace(/\s/g, '').replace(/[`~!@#$%^&*()|+\=?;:'",.<>\{\}\[\]\\\/]/gi, '') : 'herbs-project',
description: options.description ? options.description : 'project generated by herbs CLI S2',
author: options.author ? options.author.replace(/\s/g, '').replace(/[^\w\s]/gi, '') : 'herbs CLI',
author: options.author ? options.author.replace(/\s/g, '').replace(/[`~!@#$%^&*()|+\=?;:'",.<>\{\}\[\]\\\/]/gi, '') : 'herbs CLI',
license: options.license ? options.license : 'MIT',
mongo: options.mongo ? options.mongo : false,
postgres: options.postgres ? options.postgres : false,
Expand Down

0 comments on commit b64331f

Please sign in to comment.