leo icon indicating copy to clipboard operation
leo copied to clipboard

Fix validation for package name.

Open d0cd opened this issue 3 years ago • 1 comments

This PR fixes the check on the package name when invoking leo new <package_name>. Package names are now checked to be valid identifiers, which should correspond to the requirements imposed by Aleo instructions.

d0cd avatar Oct 13 '22 19:10 d0cd

Codecov Report

Merging #2128 (977dcd3) into testnet3 (59d3574) will increase coverage by 0.03%. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           testnet3    #2128      +/-   ##
============================================
+ Coverage     81.73%   81.77%   +0.03%     
============================================
  Files           147      147              
  Lines          6696     6688       -8     
  Branches       6696     6688       -8     
============================================
- Hits           5473     5469       -4     
+ Misses         1223     1219       -4     
Impacted Files Coverage Δ
compiler/span/src/source_map.rs 82.32% <100.00%> (ø)
leo/package/src/package.rs 100.00% <100.00%> (+8.69%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

codecov[bot] avatar Oct 13 '22 21:10 codecov[bot]