From a65de151db605f75ddf53fc8ef6e95a1e14f3feb Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Wed, 5 Jun 2013 19:59:30 -0400 Subject: [PATCH] made simple strings be allowed to have periods and forward slashes --- doc/syntax.md | 3 ++- parse.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/syntax.md b/doc/syntax.md index 4b3d4e1..9fc355e 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -12,12 +12,13 @@ literal whitespace characters are properly parsed as well ``` The second way only works if your string contains exclusively the following characters: -`a-z A-Z 0-9 _ - ! ?` (spaces added for readability) +`a-z A-Z 0-9 _ - ! ? . /` (spaces added for readability) ``` neat this_works so-does-this! what-about-this?_YUP! +/directory/with/a/file.ext ``` ## Integers diff --git a/parse.go b/parse.go index 3f68b3c..522c988 100644 --- a/parse.go +++ b/parse.go @@ -54,6 +54,8 @@ var SimpleChars = CharSet{ Char('_'), Char('!'), Char('?'), + Char('.'), + Char('/'), } //For translating the special characters