mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
CustomFieldStringTemplate regular expressions, .{1,10} also possible
This commit is contained in:
parent
53bfa967c6
commit
18d88035fb
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ export class CustomFieldStringTemplate extends CustomField {
|
||||||
const ret = (rawValue ?? [])
|
const ret = (rawValue ?? [])
|
||||||
.filter(value => !!value.trim())
|
.filter(value => !!value.trim())
|
||||||
.map(value => {
|
.map(value => {
|
||||||
let _ret = this.format.replace(/[%$]\{.+?\}/g, function(_match) {
|
let _ret = this.format.replace(/[%$]\{.+?[^0-9]\}/g, function(_match) {
|
||||||
let __ret;
|
let __ret;
|
||||||
if (_match.match(/%\{value\}/i)) {
|
if (_match.match(/%\{value\}/i)) {
|
||||||
__ret = value;
|
__ret = value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue