From 7b5726b219d5f44b2f3cf34d20b5bbb2e0742ec8 Mon Sep 17 00:00:00 2001 From: Harenson Henao Date: Thu, 14 Jan 2016 10:10:35 -0500 Subject: [PATCH] [Fix #296] Add test to check issue #296 is already fixed --- test/examples/fail_operator_spaces.erl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/examples/fail_operator_spaces.erl b/test/examples/fail_operator_spaces.erl index 7c5c968..689ae28 100644 --- a/test/examples/fail_operator_spaces.erl +++ b/test/examples/fail_operator_spaces.erl @@ -6,6 +6,7 @@ function4/2, function5/0, function6/0, + function7/0, tag_filters/2]). %% No space before and after coma,on a comment. @@ -36,6 +37,13 @@ function6() -> _MissingRightSpace = 2 +3, _Successfull = 2 + 3. +function7() -> + % commas within strings must be ignored + Name = "anyone", + re:run(Name, "^.{1,20}$", [unicode]), + RegExp = "^.{1,20}$", + re:run(Name, RegExp, [unicode]). + tag_filters(DocName, #{conn := Conn} = State) -> TableName = atom_to_list(DocName), Sql = ["SELECT "