fixed #7, javascript filter for pongo2 with context in this variable
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Sebastian Frank
2019-02-28 18:36:36 +01:00
parent 9e2f16dde9
commit 079534ab71
9 changed files with 102 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
function datum(str, param) {
if (!param) {
param = "$3.$2.$1";
}
/*
this.context.Meta.Title ist hier z.B. möglich
*/
return str.replace(/^([0-9]+)[^0-9]+([0-9]+)[^0-9]+([0-9]+).*/, param)
}
datum;