Skip to content

Add more pattern types to matcher - #8605

Merged
sophiajt merged 1 commit into
nushell:mainfrom
sophiajt:add_more_patterns
Mar 25, 2023
Merged

sophiajt merged 1 commit into
nushell:mainfrom
sophiajt:add_more_patterns

Conversation

@sophiajt

Copy link
Copy Markdown
Contributor

Description

Add float, string, and date patterns to matcher.

This could probably use some tests 😅

User-Facing Changes

(List of all changes that impact the user experience here. This helps us keep track of breaking changes.)

Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace to check that all tests pass

Note
from nushell you can also use the toolkit as follows

use toolkit.nu  # or use an `env_change` hook to activate it automatically
toolkit check pr

After Submitting

If your PR had any user-facing changes, update the documentation after the PR is merged, if necessary. This will help us keep the docs up to date.

@codecov

codecov Bot commented Mar 25, 2023

Copy link
Copy Markdown

Codecov Report

Merging #8605 (c925b3f) into main (c0648a8) will increase coverage by 0.00%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8605   +/-   ##
=======================================
  Coverage   68.53%   68.53%           
=======================================
  Files         631      631           
  Lines      101983   101995   +12     
=======================================
+ Hits        69890    69899    +9     
- Misses      32093    32096    +3     
Impacted Files Coverage Δ
crates/nu-protocol/src/engine/pattern_match.rs 40.00% <0.00%> (-4.25%) ⬇️

... and 4 files with indirect coverage changes

@sophiajt

Copy link
Copy Markdown
Contributor Author

Landing without tests for now, which are blocked on integration testing for the nu-cmd-lang crate

@sophiajt
sophiajt merged commit aab3183 into nushell:main Mar 25, 2023
@sophiajt
sophiajt deleted the add_more_patterns branch March 25, 2023 04:30
@amtoine amtoine mentioned this pull request Mar 25, 2023
4 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant