leo
leo copied to clipboard
Fix validation for package name.
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.
Codecov Report
Merging #2128 (977dcd3) into testnet3 (59d3574) will increase coverage by
0.03%. The diff coverage is100.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