7 lines
181 B
TypeScript
7 lines
181 B
TypeScript
function includeCode(text: string | null | undefined) {
|
|
const regexp = /^(?:\s{4}|\t).+/gm
|
|
return !!(text?.includes(' = ') || text?.match(regexp))
|
|
}
|
|
|
|
export default includeCode
|