diff options
Diffstat (limited to 'tools/replace.nom')
| -rwxr-xr-x | tools/replace.nom | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/replace.nom b/tools/replace.nom index 76617cf..a0de4cc 100755 --- a/tools/replace.nom +++ b/tools/replace.nom @@ -1,4 +1,4 @@ -#!/usr/bin/env nomsu -V3.7.5.6 +#!/usr/bin/env nomsu -V3.8.7.6 # Tool to find and replace one tree with another. nomsu tools/replace.nom [-i] tree_to_replace replacement file1 file2 directory1 ... @@ -21,7 +21,7 @@ if ((size of %args) < 3): %replacement = (parse (%args::remove index 1)) for %path in %args: for file %filename in %path: - unless (any [%filename matches "%.nom$", %filename == "-", %filename == "stdin"]): + unless (any [%filename::matches "%.nom$", %filename == "-", %filename == "stdin"]): do next %filename %tree = (parse (read file %filename) from %filename) %tree2 = (%tree with %pattern ~> %replacement) |
