ai-app-factory / src /isReactAppPrompt.mts
jbilcke-hf's picture
jbilcke-hf HF staff
add support for Docker
b93a813
raw
history blame
380 Bytes
export function isReactAppPrompt(prompt: string) {
const lowerCasePrompt = prompt.toLocaleLowerCase()
return lowerCasePrompt.includes("react")
|| lowerCasePrompt.includes("create react app")
|| lowerCasePrompt.includes("reactjs")
|| lowerCasePrompt.includes("next app")
|| lowerCasePrompt.includes("nextjs app")
|| lowerCasePrompt.includes("nextjs")
}