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
There's an internal content(Element) method with a TODO that does not yet have an issue associated with it:
// TODO: Check this code's efficiencyStringname = element.getTagName();
returnUtil.toString(element).replaceAll("(?s)^<" + name + "(?:[^>]*)>(.*)</" + name + ">$", "$1");
This is very obviously inefficient. We cannot cache the regular expression, but we can traverse the string without resorting to regexes, as the regex logic is rather simple.
The text was updated successfully, but these errors were encountered:
There's an internal
content(Element)
method with a TODO that does not yet have an issue associated with it:This is very obviously inefficient. We cannot cache the regular expression, but we can traverse the string without resorting to regexes, as the regex logic is rather simple.
The text was updated successfully, but these errors were encountered: