mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-20 07:02:21 +01:00
Fixed script regex for Locale
Affects issues: - Fixed #1372, Fixed #1373
This commit is contained in:
parent
96d6f7fa31
commit
6339696b58
@ -107,7 +107,7 @@ public class Locale extends HashMap<Lang, Message> {
|
|||||||
return from;
|
return from;
|
||||||
}
|
}
|
||||||
|
|
||||||
Pattern scripts = Pattern.compile("(<script>[\\s\\S]*?</script>|<script src=[\"|'].*[\"|']></script>|<link [\\s\\S]*?>)");
|
Pattern scripts = Pattern.compile("(<script id=[\"|'].*[\"|']>[\\s\\S]*?</script>|<script>[\\s\\S]*?</script>|<script src=[\"|'].*[\"|']></script>|<link [\\s\\S]*?>)");
|
||||||
|
|
||||||
Matcher scriptMatcher = scripts.matcher(from);
|
Matcher scriptMatcher = scripts.matcher(from);
|
||||||
List<String> foundScripts = new ArrayList<>();
|
List<String> foundScripts = new ArrayList<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user