You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cz...@apache.org on 2012/12/01 07:26:21 UTC

svn commit: r1415922 - /incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/css/CSSFunctionCallPropertyValue.java

Author: czadra
Date: Sat Dec  1 06:26:19 2012
New Revision: 1415922

URL: http://svn.apache.org/viewvc?rev=1415922&view=rev
Log:
removing single quotes in getSingleArgumentFromRaw

Modified:
    incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/css/CSSFunctionCallPropertyValue.java

Modified: incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/css/CSSFunctionCallPropertyValue.java
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/css/CSSFunctionCallPropertyValue.java?rev=1415922&r1=1415921&r2=1415922&view=diff
==============================================================================
--- incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/css/CSSFunctionCallPropertyValue.java (original)
+++ incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/css/CSSFunctionCallPropertyValue.java Sat Dec  1 06:26:19 2012
@@ -74,15 +74,17 @@ public class CSSFunctionCallPropertyValu
     }
 
     /**
-     * If {@code rawArguments} is of pattern {@code "argument"}, then return
-     * {@code argument}. Otherwise, return the original value.
+     * If {@code rawArguments} is of pattern {@code "argument"} 
+     * or {@code 'argument'}, then return {@code argument}. Otherwise, 
+     * return the original value.
      * 
      * @param rawArguments Raw argument from {@link #rawArguments}.
      * @return Single argument name.
      */
     public static String getSingleArgumentFromRaw(final String rawArguments)
     {
-        if (rawArguments.startsWith("\"") && rawArguments.endsWith("\""))
+        if ( (rawArguments.startsWith("\"") && rawArguments.endsWith("\""))
+                || (rawArguments.startsWith("'") && rawArguments.endsWith("'")) )
         {
             return rawArguments.substring(1, rawArguments.length() - 1);
         }