adjusted number format regex [ci skip]

This commit is contained in:
Sebastian Stenzel
2016-07-06 16:09:14 +02:00
parent d0039466f7
commit a51d853d1c

View File

@@ -1,3 +1,11 @@
/*******************************************************************************
* Copyright (c) 2016 Sebastian Stenzel and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the accompanying LICENSE.txt.
*
* Contributors:
* Sebastian Stenzel - initial API and implementation
*******************************************************************************/
package org.cryptomator.ui;
import java.io.IOException;
@@ -30,7 +38,7 @@ public class LocalizationTest {
*/
private static final String ARG_INDEX_REGEX = "(\\d+\\$)?"; // e.g. %1$s
private static final String FLAG_REGEX = "[-#+ 0,\\(]*"; // e.g. %0,f
private static final String WIDTH_AND_PRECISION_REGEX = "(\\d*(\\.\\d+))?"; // e.g. %4.2f
private static final String WIDTH_AND_PRECISION_REGEX = "(\\d*(\\.\\d+)?)?"; // e.g. %4.2f
private static final String GENERAL_CONVERSION_REGEX = "[bBhHsScCdoxXeEfgGaA%n]"; // e.g. %f
private static final String TIME_CONVERSION_REGEX = "[tT][HIklMSLNpzZsQBbhAaCYyjmdeRTrDFc]"; // e.g. %1$tY-%1$tm-%1$td
private static final String CONVERSION_REGEX = "(" + GENERAL_CONVERSION_REGEX + "|" + TIME_CONVERSION_REGEX + ")";