summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2016-04-29 17:03:51 +0200
committerPeter Wu <peter@lekensteyn.nl>2016-04-29 17:03:51 +0200
commitdfee84640f6d3c04be41d7789671153743a6764f (patch)
treeb6af3fe151e8a416f407c76330dbdcd73a9c2b2a
parent61171c2ccb7048da0223895c231541f1939d93cb (diff)
downloadRegexTest-dfee84640f6d3c04be41d7789671153743a6764f.tar.gz
Fix typo in comment
-rw-r--r--src/regex/RegexTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/regex/RegexTest.java b/src/regex/RegexTest.java
index 20a80e6..857f61d 100644
--- a/src/regex/RegexTest.java
+++ b/src/regex/RegexTest.java
@@ -103,10 +103,11 @@ public class RegexTest {
}
static void checkString() {
- // String ::= (UnescapedChar | "\" EscapedChar)*
- // UnescapedChar ::= Char - ["] = "\"
- // (* All Unicode chars but quote and backslash *)
- // EscapedChar ::= ["] | "\"
+ /* String ::= (UnescapedChar | "\" EscapedChar)*
+ * UnescapedChar ::= Char - ["] - "\"
+ * (* All Unicode chars but quote and backslash *)
+ * EscapedChar ::= ["] | "\"
+ */
RegexTest reString = new RegexTest("([^\\\"\\\\]|\\\\[\\\"\\\\])*");
reString.assertOk("");
reString.assertOk("abc");