mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02: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 ?? [])
|
||||
.filter(value => !!value.trim())
|
||||
.map(value => {
|
||||
let _ret = this.format.replace(/[%$]\{.+?\}/g, function(_match) {
|
||||
let _ret = this.format.replace(/[%$]\{.+?[^0-9]\}/g, function(_match) {
|
||||
let __ret;
|
||||
if (_match.match(/%\{value\}/i)) {
|
||||
__ret = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue