Development is frozen. The published package, documentation, examples, and changelog remain available.
Permalink to InstallationInstallation
Permalink to Quick TakeQuick Take
Permalink to ExamplesExamples
API — isJinjaNunjucksRegex()
The main function isJinjaNunjucksRegex() is imported like this:
Returns a fresh global RegExp for Jinja/Nunjucks opening markers: {% and {{. Use it with RegExp.prototype.exec() or String.prototype.match(). Closing markers %} and }} are excluded, so nested JSON or CSS closing braces do not count as template evidence.
An opening marker alone is accepted as an incomplete editor fragment. This helper locates syntax hints; it does not validate a complete template. Create a fresh regex for independent .test() calls, or reset lastIndex to zero.
API — version
You can import version: