diff --git a/package.json b/package.json index 3ddd0ff..23b04ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ztimson/utils", - "version": "0.27.20", + "version": "0.28.0", "description": "Utility library", "author": "Zak Timson", "license": "MIT", diff --git a/src/template.ts b/src/template.ts index be1838e..9f0220d 100644 --- a/src/template.ts +++ b/src/template.ts @@ -5,7 +5,7 @@ import {formatDate} from './time.ts'; export class TemplateError extends BadRequestError { } -function findTemplateVars(html: string): Record { +export function findTemplateVars(html: string): Record { const variables = new Set(); const regex = /\{\{\s*([^<>\*\?!/}\s][^}]*?)\s*}}/g; let match;