You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2007/09/02 01:00:05 UTC
svn commit: r571891 -
/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/string/JavascriptStripper.java
Author: knopp
Date: Sat Sep 1 16:00:04 2007
New Revision: 571891
URL: http://svn.apache.org/viewvc?rev=571891&view=rev
Log:
fixed a typo
Modified:
wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/string/JavascriptStripper.java
Modified: wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/string/JavascriptStripper.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/string/JavascriptStripper.java?rev=571891&r1=571890&r2=571891&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/string/JavascriptStripper.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/util/string/JavascriptStripper.java Sat Sep 1 16:00:04 2007
@@ -25,26 +25,26 @@
public class JavascriptStripper
{
/*
- * Determines the state of script proessing.
+ * Determines the state of script processing.
*/
/** Inside regular text */
- private final static int REGULAR_TEXT = 1;
-
+ private final static int REGULAR_TEXT = 1;
+
/** String started with single quote (') */
private final static int STRING_SINGLE_QUOTE = 2;
-
+
/** String started with double quotes (") */
- private final static int STRING_DOUBLE_QUOTES = 3;
-
+ private final static int STRING_DOUBLE_QUOTES = 3;
+
/** Inside two or more whitespace characters */
- private final static int WHITE_SPACE = 4;
-
- /** Inside a line comment (// ) */
- private final static int LINE_COMMENT = 5;
-
+ private final static int WHITE_SPACE = 4;
+
+ /** Inside a line comment (// ) */
+ private final static int LINE_COMMENT = 5;
+
/** Inside a multi line comment */
private final static int MULTILINE_COMMENT = 6;
-
+
/** Inside a regular expression */
private final static int REG_EXP = 7;
@@ -92,7 +92,8 @@
else if (c == '/')
{
// This might be a divide operator, or it might be a regular expression.
- // Work out if it's a regular expression by finding the previous non-whitespace char, which
+ // Work out if it's a regular expression by finding the previous non-whitespace
+ // char, which
// will be either '=' or '('. If it's not, it's just a divide operator.
int idx = i - 1;
while (idx > 0)
@@ -167,7 +168,7 @@
result.append(c);
continue;
}
-
+
if (state == REG_EXP)
{
if (c == '/' && prev != '\\')