You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When init project using yo, determineAppname is used to set default project name as the current directory name. However if the directory name is bar-foo(open node_modules of any project, you will find this name convention is quite usual than bar_foo). The following regex will replace - with space. Recommend change /[^\w\s]+?/g to /[^\w\s-]+?/g
I'm not sure how I feel about changing that because it's kind of always been this way. Would it make sense for you to reassign this value yourself? In theory, there's nothing forcing you to use this.appname directly.
When init project using
yo
,determineAppname
is used to set default project name as the current directory name. However if the directory name isbar-foo
(opennode_modules
of any project, you will find this name convention is quite usual thanbar_foo
). The following regex will replace-
with space. Recommend change/[^\w\s]+?/g
to/[^\w\s-]+?/g
generator/lib/index.js
Line 647 in 150053c
The text was updated successfully, but these errors were encountered: