From 9e820c648be4bc366d3b4353699ae2d14129b8f7 Mon Sep 17 00:00:00 2001 From: Vikram Rajkumar Date: Mon, 6 Jul 2015 12:17:18 -0400 Subject: [PATCH 1/7] Update submodules --- docs | 2 +- libraries/fc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs b/docs index f3012a73..d0d1fd5b 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit f3012a7328227e90da6ded944c3c4bf2a4ab94a0 +Subproject commit d0d1fd5b5e7eaab29d94b6b0388c5d6673f1a134 diff --git a/libraries/fc b/libraries/fc index 443544be..1ce9f4c3 160000 --- a/libraries/fc +++ b/libraries/fc @@ -1 +1 @@ -Subproject commit 443544be4f58f47e6432a2676ff81d8b782ce1b6 +Subproject commit 1ce9f4c37e6d3b7672ca9cfb152d236085f31f74 From 7c30e44dc9d4d9ff74709dbf5acb17e9d0802da8 Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Mon, 6 Jul 2015 12:40:57 -0400 Subject: [PATCH 2/7] Fix is_valid_name() bugs, make it RFC 1035 compliant, update unit test, fix #15 --- libraries/chain/operations.cpp | 122 ++++++++++++++++++++++----------- tests/tests/basic_tests.cpp | 45 ++++++------ 2 files changed, 105 insertions(+), 62 deletions(-) diff --git a/libraries/chain/operations.cpp b/libraries/chain/operations.cpp index 1da28524..c274b6ed 100644 --- a/libraries/chain/operations.cpp +++ b/libraries/chain/operations.cpp @@ -63,58 +63,98 @@ bool is_valid_symbol( const string& symbol ) return true; } + + /** - * Valid names can contain [a, z], [0, 9], '.', and '-' - * They must start with [a, z] - * They must end with [a, z] or [0, 9] - * '.' must be followed by [a, z] - * '-' must be followed by [a, z] or [0, 9] + * Names must comply with the following grammar (RFC 1035): + * ::= | " " + * ::=