Commit 8e7bd58d authored by Nico Mack's avatar Nico Mack

Fixed missing decimal format in format regex

parent 6e267f2c
......@@ -51,8 +51,8 @@ public class Interpolator {
private static final String INTEGER_STEM = "[ +\\-0-9]\\{{}\\}"; //$NON-NLS-1$
private static final String DECIMALS_STEM = "\\.[0-9]\\{{}\\}"; //$NON-NLS-1$
private static final Pattern VARIABLE_PATTERN = Pattern.compile("\\$\\{([a-z0-9\\-_]+)(\\.(%[bscxoefgt\\+\\.0-9]+))?\\}", Pattern.CASE_INSENSITIVE); //$NON-NLS-1$
private static final Pattern FORMAT_PATTERN = Pattern.compile("\\%((\\d*)(\\.(\\d+))?)([bscxoefgt])", Pattern.CASE_INSENSITIVE); //$NON-NLS-1$
private static final Pattern VARIABLE_PATTERN = Pattern.compile("\\$\\{([a-z0-9\\-_]+)(\\.(%[dbscxoefgt\\+\\.0-9]+))?\\}", Pattern.CASE_INSENSITIVE); //$NON-NLS-1$
private static final Pattern FORMAT_PATTERN = Pattern.compile("\\%((\\d*)(\\.(\\d+))?)([dbscxoefgt])", Pattern.CASE_INSENSITIVE); //$NON-NLS-1$
private static HashMap<String, Object> targetLookup = new HashMap<>();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment