Skip to content

Commit 6a030e3

Browse files
committed
feat: introduce value inheritance for custom fields
1 parent 2f47831 commit 6a030e3

File tree

2 files changed

+330
-5
lines changed

2 files changed

+330
-5
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package de.codescape.jira.plugins.multiplesubtasks.model;
2+
3+
import java.util.regex.Pattern;
4+
5+
/**
6+
* Variables are introduced by an `@` character and their value is surrounded by curly braces.
7+
*/
8+
public class Variables {
9+
10+
/**
11+
* Pattern to find all variables inside a value.
12+
*/
13+
public final static Pattern FIND_VARIABLES = Pattern.compile("@\\{([^}]+)}");
14+
15+
/**
16+
* Pattern to extract all variable values from a value.
17+
*/
18+
// FIXME REMOVE
19+
public final static Pattern FIND_VALUES = Pattern.compile("(?<=@\\{)([^}]+)(?=})");
20+
21+
}

0 commit comments

Comments
 (0)