File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
src/com/magento/idea/magento2plugin
actions/generation/generator Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ private String getDependenciesString(List dependenciesList) {
114114
115115 private Pair <String , String > getDependencyData (String dependency ) {
116116 String version = "*" ;
117- String moduleName = camelCaseToHyphen .convert (dependency ).replace ("_- " , "/" );
117+ String moduleName = camelCaseToHyphen .convert (dependency ).replace ("_" , "/" );
118118 try {
119119 VirtualFile virtualFile = moduleIndex .getModuleDirectoryByModuleName (dependency )
120120 .findFile (ComposerJson .FILE_NAME )
Original file line number Diff line number Diff line change @@ -18,14 +18,6 @@ public static CamelCaseToHyphen getInstance() {
1818 }
1919
2020 public String convert (String string ) {
21- String regex = "(?=[A-Z][a-z])" ;
22- String subst = "-" ;
23-
24- Pattern pattern = Pattern .compile (regex );
25- Matcher matcher = pattern .matcher (string );
26-
27- String result = matcher .replaceAll (subst );
28-
29- return result .toLowerCase ().substring (1 );
21+ return string .toLowerCase ();
3022 }
3123}
You can’t perform that action at this time.
0 commit comments