incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cza...@apache.org
Subject svn commit: r1415922 - /incubator/flex/falcon/trunk/compiler/src/org/apache/flex/compiler/internal/css/CSSFunctionCallPropertyValue.java
Date Sat, 01 Dec 2012 06:26:21 GMT
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);
         }



Mime
View raw message