We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f1c271 commit 4505d4fCopy full SHA for 4505d4f
src/Middleware/RemoveQuotes.php
@@ -7,15 +7,15 @@ class RemoveQuotes extends PageSpeed
7
public function apply($buffer)
8
{
9
$replace = [
10
- '/ src="(.*?)"/' => ' src=$1',
11
- '/ width="(.*?)"/' => ' width=$1',
12
- '/ height="(.*?)"/' => ' height=$1',
13
- '/ name="(.*?)"/' => ' name=$1',
14
- '/ charset="(.*?)"/' => ' charset=$1',
15
- '/ align="(.*?)"/' => ' align=$1',
16
- '/ border="(.*?)"/' => ' border=$1',
17
- '/ crossorigin="(.*?)"/' => ' crossorigin=$1',
18
- '/ type="(.*?)"/' => ' type=$1',
+ '/ src="(.\S*?)"/' => ' src=$1',
+ '/ width="(.\S*?)"/' => ' width=$1',
+ '/ height="(.\S*?)"/' => ' height=$1',
+ '/ name="(.\S*?)"/' => ' name=$1',
+ '/ charset="(.\S*?)"/' => ' charset=$1',
+ '/ align="(.\S*?)"/' => ' align=$1',
+ '/ border="(.\S*?)"/' => ' border=$1',
+ '/ crossorigin="(.\S*?)"/' => ' crossorigin=$1',
+ '/ type="(.\S*?)"/' => ' type=$1',
19
'/\/>/' => '>',
20
];
21
0 commit comments