Преглед изворни кода

adjusted number format regex [ci skip]

Sebastian Stenzel пре 9 година
родитељ
комит
a51d853d1c
1 измењених фајлова са 9 додато и 1 уклоњено
  1. 9 1
      main/ui/src/test/java/org/cryptomator/ui/LocalizationTest.java

+ 9 - 1
main/ui/src/test/java/org/cryptomator/ui/LocalizationTest.java

@@ -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 + ")";