[jboss-svn-commits] JBoss Portal SVN: r5612 - trunk/portlet/src/main/org/jboss/portal/test/portlet/jsr168/api/portletcontext

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Nov 9 12:43:47 EST 2006


Author: julien at jboss.com
Date: 2006-11-09 12:43:45 -0500 (Thu, 09 Nov 2006)
New Revision: 5612

Modified:
   trunk/portlet/src/main/org/jboss/portal/test/portlet/jsr168/api/portletcontext/PortletContextSequenceBuilder.java
Log:
update regex for version info matching in portlet conformance

Modified: trunk/portlet/src/main/org/jboss/portal/test/portlet/jsr168/api/portletcontext/PortletContextSequenceBuilder.java
===================================================================
--- trunk/portlet/src/main/org/jboss/portal/test/portlet/jsr168/api/portletcontext/PortletContextSequenceBuilder.java	2006-11-09 17:41:48 UTC (rev 5611)
+++ trunk/portlet/src/main/org/jboss/portal/test/portlet/jsr168/api/portletcontext/PortletContextSequenceBuilder.java	2006-11-09 17:43:45 UTC (rev 5612)
@@ -48,10 +48,10 @@
 {
 
    /** . */
-   private static final String VERSION_REGEX = "JBossPortal/[0-9]\\.[0-9]";
+   private static final String VERSION_REGEX = "JBossPortal/[0-9]{3,3}\\\\.[0-9]{3,3}";
 
    /** . */
-   private static final Pattern VERSION_PATTERN = Pattern.compile(VERSION_REGEX, Pattern.DOTALL | Pattern.CASE_INSENSITIVE);
+   private static final Pattern VERSION_PATTERN = Pattern.compile(VERSION_REGEX, Pattern.CASE_INSENSITIVE);
 
    /** PortletContext.getServerInfo() */
    public void createServerInfoCase(SequenceRegistry registry)




More information about the jboss-svn-commits mailing list