[HepData-svn] r1573 - trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Sep 24 14:54:50 BST 2012


Author: whalley
Date: Mon Sep 24 14:54:49 2012
New Revision: 1573

Log:
-ve red numbers now work in ViewBase!

Modified:
   trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ViewBase.java

Modified: trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ViewBase.java
==============================================================================
--- trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ViewBase.java	Wed Sep 12 16:18:56 2012	(r1572)
+++ trunk/hepdata-webapp/src/main/java/cedar/hepdata/webapp/pages/ViewBase.java	Mon Sep 24 14:54:49 2012	(r1573)
@@ -122,7 +122,7 @@
                 continue;
             }
 
-            m = Pattern.compile("\\A" + "red" + "(\\d+)\\Z").matcher(ps);
+            m = Pattern.compile("\\A" + "red" + "(-?\\d+)\\Z").matcher(ps);
             if (m.matches()) {
                 _params.put("red", m.group(1));
                 continue;


More information about the HepData-svn mailing list