summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Unterwaditzer <markus@unterwaditzer.net>2015-01-15 16:36:20 +0100
committerMarkus Unterwaditzer <markus@unterwaditzer.net>2015-01-15 16:37:55 +0100
commit746fb5818ac77b1261ab11466f6fed2e279baaec (patch)
tree0af5060ece3787f5c85d40004d5a96a309cc5d38
parent49e5325215fa584da6be48da020b0a99c423e7d6 (diff)
Add comment about CONTROL chars
-rw-r--r--src/vobject/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vobject/lib.rs b/src/vobject/lib.rs
index 695e09b..4eb6a89 100644
--- a/src/vobject/lib.rs
+++ b/src/vobject/lib.rs
@@ -187,6 +187,9 @@ value_char = !eol .
eol = "\r\n" / "\n" / "\r"
dquote = "\""
eols = eol+
+
+// Taken from vCard. vCalendar's is a subset. Together with the definition of "qsafe_char" this
+// might reject a bunch of valid iCalendars, but I can't imagine one.
ctl = [\u{00}-\u{1F}] / "\u{7F}"
whitespace = " " / "\t"