Skip to content

Commit

Permalink
use extension
Browse files Browse the repository at this point in the history
We were passing through the extension, but weren't using it.
  • Loading branch information
RobinMalfait committed Oct 10, 2024
1 parent a381294 commit f92261f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/@tailwindcss-upgrade/src/template/candidates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import type { DesignSystem } from '../../../tailwindcss/src/design-system'

export async function extractRawCandidates(
content: string,
extension: string = 'html',
): Promise<{ rawCandidate: string; start: number; end: number }[]> {
let scanner = new Scanner({})
let result = scanner.getCandidatesWithPositions({ content, extension: 'html' })
let result = scanner.getCandidatesWithPositions({ content, extension })

let candidates: { rawCandidate: string; start: number; end: number }[] = []
for (let { candidate: rawCandidate, position: start } of result) {
Expand Down

0 comments on commit f92261f

Please sign in to comment.