Commit f98a8290 authored by Bijun Li's avatar Bijun Li
Browse files

Update for merge

parent 61d3a9ae
Showing with 2 additions and 3 deletions
+2 -3
......@@ -17,10 +17,9 @@ use serde_json::Value;
use std::str;
use warp::http::status::StatusCode;
/// Validate field name.
/// Field name is valid only if it contains less than 18 characters and
/// Field name is valid only if it contains less than or equal to 18 characters and
/// characters from 'a' to 'z', 'A' to 'Z'.
fn field_name_validator(field: &str) -> Result<()> {
fn validate_field_name(field: &str) -> Result<()> {
lazy_static! {
static ref FIELD_RE: Regex = Regex::new(r"^[a-zA-Z]{1,18}$").expect("Cannot create regex");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment