Skip to main content
Module

x/context_finder/src/cross_runtime_helpers.ts>hasBrackets

Search a given file for specific sections/context data, collect this and write to a new file. For Node and Deno.
Latest
function hasBrackets
import { hasBrackets } from "https://deno.land/x/context_finder@v1.1.1/src/cross_runtime_helpers.ts";

Check a Line For Brackets

Checks the text in the line of the file for any brackets ([, ]) to determine if the line-reader has reached a context title, thus reaching a NEW context

Parameters

lineText: string

The text in the line being read by the line-reader

Returns

boolean

True or false based on if the line has brackets