Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 38207eb618 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ztimson/utils",
|
"name": "@ztimson/utils",
|
||||||
"version": "0.27.20",
|
"version": "0.28.0",
|
||||||
"description": "Utility library",
|
"description": "Utility library",
|
||||||
"author": "Zak Timson",
|
"author": "Zak Timson",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {formatDate} from './time.ts';
|
|||||||
|
|
||||||
export class TemplateError extends BadRequestError { }
|
export class TemplateError extends BadRequestError { }
|
||||||
|
|
||||||
function findTemplateVars(html: string): Record<string, any> {
|
export function findTemplateVars(html: string): Record<string, any> {
|
||||||
const variables = new Set<string>();
|
const variables = new Set<string>();
|
||||||
const regex = /\{\{\s*([^<>\*\?!/}\s][^}]*?)\s*}}/g;
|
const regex = /\{\{\s*([^<>\*\?!/}\s][^}]*?)\s*}}/g;
|
||||||
let match;
|
let match;
|
||||||
|
|||||||
Reference in New Issue
Block a user