Skip to content

Commit

Permalink
only allow punction to start a name in native functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kantai committed Sep 4, 2019
1 parent ce3b289 commit 74257cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/representations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ macro_rules! guarded_string {
}
}

guarded_string!(ClarityName, "ClarityName", Regex::new("^([a-zA-Z]|[-!?+<>=/*])([a-zA-Z0-9]|[-_!?+<>=/*])*$"));
guarded_string!(ClarityName, "ClarityName", Regex::new("^[a-zA-Z]([a-zA-Z0-9]|[-_!?+<>=/*])*$|^[-+=/*]$|^[<>]=?$"));
guarded_string!(ContractName, "ContractName", Regex::new("^[a-zA-Z]([a-zA-Z0-9]|[-_])*$|^__transient$"));

impl SymbolicExpression {
Expand Down

0 comments on commit 74257cd

Please sign in to comment.