Skip to content

Commit 53b1d4d

Browse files
author
Vitaliy Boyko
committed
Fixed tests
1 parent 9d5e4ed commit 53b1d4d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/com/magento/idea/magento2plugin/reference/provider/PhpClassReferenceProvider.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public PsiReference[] getReferencesByElement(@NotNull PsiElement element, @NotNu
3636
return PsiReference.EMPTY_ARRAY;
3737
}
3838

39-
String classFQN = matcher.group();
39+
String classFQN = origValue.replaceAll("^\"|\"$", "");;
4040
String[] fqnParts = classFQN.split("\\\\");
4141

4242
PhpIndex phpIndex = PhpIndex.getInstance(element.getProject());

src/com/magento/idea/magento2plugin/util/RegExUtil.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,10 @@ public static class Magento {
7373
public class PhpRegex {
7474

7575
public static final String CLASS_NAME
76-
= "[A-Z][a-zA-Z0-9_\\x7f-\\xff]*";
77-
78-
public static final String DIR_NAME
7976
= "[a-zA-Z0-9_\\x7f-\\xff]*";
8077

8178
public static final String FQN
82-
= CLASS_NAME + "(\\\\" + DIR_NAME + ")*" + CLASS_NAME;
79+
= CLASS_NAME + "(\\\\" + CLASS_NAME + ")*";
8380
}
8481

8582
public static class XmlRegex {

0 commit comments

Comments
 (0)