mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-10 06:03:47 -05:00
_cleanstring_: allow regex
This commit is contained in:
@@ -131,6 +131,12 @@ _testCleanString_() {
|
||||
assert_output "this is a-string"
|
||||
}
|
||||
|
||||
@test "_cleanString_: alnum w/ spaces and dashes and regex replace" {
|
||||
run _cleanString_ -asp "-|_|st, " "th_is(is)a-string"
|
||||
assert_success
|
||||
assert_output "th is is a ring"
|
||||
}
|
||||
|
||||
@test "_cleanString_: user replacement" {
|
||||
run _cleanString_ -p "e,g" "there should be a lot of e's in this sentence"
|
||||
assert_success
|
||||
|
||||
Reference in New Issue
Block a user