Open frizikk opened 3 years ago
Hi, i've this problem ; and your solution dont work either for this one
<script rel="preload" src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0//ElJ19smozuHV6z3Iehds+3Ulb9Bn9Plx0x4" crossorigin="anonymous"></script>
`Error parsing 'integrity' attribute ('sha384-gtEjrD/SeCtmISkJkNUaaKMoLD0
<script src='). The hash algorithm must be one of 'sha256', 'sha384', or 'sha512', followed by a '-' character.`
Description
Some CDN's generate sri hash where may contain //
Motivation and context
RemoveComments class works incorrectly
Given string
Without fix RemoveComments class return
How has this been tested?
composer test
Types of changes
What types of changes does your code introduce? Put an
x
in all the boxes that apply:Checklist: