Add type to regex args to prevent conversion issue with numbers
This commit is contained in:
4
filla.nu
4
filla.nu
@ -2,7 +2,7 @@
|
||||
|
||||
def main [] {}
|
||||
|
||||
def "main test" [search replace ...paths] {
|
||||
def "main rename_test" [search: string replace: string ...paths] {
|
||||
|
||||
print $"search: ($search) replace: ($replace)"
|
||||
|
||||
@ -20,7 +20,7 @@ def "main test" [search replace ...paths] {
|
||||
)
|
||||
}
|
||||
|
||||
def "main rename" [search replace ...paths] {
|
||||
def "main rename" [search: string replace: string ...paths] {
|
||||
|
||||
($paths |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user