Thanks to visit codestin.com Credit goes to github.com
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 2c1c31b commit f1572a4Copy full SHA for f1572a4
packages/@tailwindcss-upgrade/src/codemods/template/is-safe-migration.ts
@@ -189,12 +189,12 @@ const styleBlockRanges = new DefaultMap((source: string) => {
189
let startTag = source.indexOf('<style', offset)
190
if (startTag === -1) return ranges
191
192
+ offset = startTag + 1
193
+
194
// Ensure the style looks like:
195
// - `<style>` (closed)
196
// - `<style …>` (with attributes)
- if (!source[startTag + 6].match(/[>\s]/)) return ranges
-
197
- offset = startTag + 1
+ if (!source[startTag + 6].match(/[>\s]/)) continue
198
199
let endTag = source.indexOf('</style>', offset)
200
if (endTag === -1) return ranges
0 commit comments