Commit a6553139 authored by Piotr Tomiak's avatar Piotr Tomiak Committed by intellij-monorepo-bot
Browse files

WEB-49752 PHP/other mix: meta encoding: Unknown encoding - post review fixes

(cherry picked from commit ed7c81399a8fc42b5f96e75a7dcec58e153d769e)

IJ-CR-12898

GitOrigin-RevId: ebb0519957d48584ccf14d4ea31dd9aa9d24baba
parent ae6d93cf
Showing with 2 additions and 2 deletions
+2 -2
......@@ -56,8 +56,8 @@ public class XmlEncodingReferenceProvider extends PsiReferenceProvider {
}
public static PsiReference[] extractFromContentAttribute(final XmlAttributeValue value) {
boolean hasNonStandardTokens = ContainerUtil.find(
value.getChildren(), ch -> !ATTRIBUTE_VALUE_STD_TOKENS.contains(ch.getNode().getElementType())) != null;
boolean hasNonStandardTokens =
ContainerUtil.exists(value.getChildren(), ch -> !ATTRIBUTE_VALUE_STD_TOKENS.contains(ch.getNode().getElementType()));
if (hasNonStandardTokens) return PsiReference.EMPTY_ARRAY;
String text = value.getValue();
int start = text.indexOf(CHARSET_PREFIX);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment