aboutsummaryrefslogtreecommitdiff
path: root/examples/tomo-install/tomo-install.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-15 14:22:11 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-15 14:22:11 -0400
commitf51acef40e8297d7bd41b774413aa8331ca946ed (patch)
tree56aa02541d60beb3ece496fed2c11afd3ae942f3 /examples/tomo-install/tomo-install.tm
parent7a2653501310825e02d99d51fb4b9f1aacc75214 (diff)
Overhaul of Path so it uses root and array of components instead of
stringly typed
Diffstat (limited to 'examples/tomo-install/tomo-install.tm')
-rw-r--r--examples/tomo-install/tomo-install.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tomo-install/tomo-install.tm b/examples/tomo-install/tomo-install.tm
index f769204f..43e23028 100644
--- a/examples/tomo-install/tomo-install.tm
+++ b/examples/tomo-install/tomo-install.tm
@@ -13,7 +13,7 @@ func find_urls(path:Path -> [Text]):
if path:is_directory():
for f in path:children():
urls:insert_all(find_urls(f))
- else if path:is_file() and path:ends_with(".tm"):
+ else if path:is_file() and path:extension() == ".tm":
for line in path:by_line()!:
if m := line:matches($/use{space}{url}/) or line:matches($/{id}{space}:={space}use{space}{url}/):
urls:insert(m[-1])