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 4b2d346 commit c0967b3Copy full SHA for c0967b3
transformer/internal/amphtml/srcset.go
@@ -91,7 +91,7 @@ func roundUp(w int) int {
91
// [1-9]\d*\.\d+x a decimal with its whole-number part greater
92
// than zero and followed by an x ...
93
// | or ...
94
-// 0.\d*[1-9]\d*x a decimal with its fractional part greater
+// 0\.\d*[1-9]\d*x a decimal with its fractional part greater
95
96
// )? and make it optional.
97
// \s* Match, but don't capture space
@@ -107,7 +107,7 @@ var imageCandidateRE = regexp.MustCompile(
107
`|` +
108
`[1-9]\d*\.\d+x` +
109
110
- `0.\d*[1-9]\d*` +
+ `0\.\d*[1-9]\d*x` +
111
`)?` +
112
`\s*` +
113
`(?:(,)\s*)?`)
0 commit comments