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) {
114
114
115
115
private Pair <String , String > getDependencyData (String dependency ) {
116
116
String version = "*" ;
117
- String moduleName = camelCaseToHyphen .convert (dependency ).replace ("_- " , "/" );
117
+ String moduleName = camelCaseToHyphen .convert (dependency ).replace ("_" , "/" );
118
118
try {
119
119
VirtualFile virtualFile = moduleIndex .getModuleDirectoryByModuleName (dependency )
120
120
.findFile (ComposerJson .FILE_NAME )
Original file line number Diff line number Diff line change @@ -18,14 +18,6 @@ public static CamelCaseToHyphen getInstance() {
18
18
}
19
19
20
20
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 ();
30
22
}
31
23
}
You can’t perform that action at this time.
0 commit comments