From 800e386105255c9c4faa9a7051b100a8768a70de Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 24 Sep 2024 13:26:49 -0400 Subject: Rename `from_unsafe_text` to `without_escaping` --- examples/tomodeps/tomodeps.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/tomodeps/tomodeps.tm b/examples/tomodeps/tomodeps.tm index 1cd2ee59..9418ba6f 100644 --- a/examples/tomodeps/tomodeps.tm +++ b/examples/tomodeps/tomodeps.tm @@ -18,7 +18,7 @@ func _get_file_dependencies(file:Path)->{Dependency}: if lines := file:by_line(): for line in lines: if line:matches($/use {..}.tm/): - file_import := Path.from_unsafe_text(line:replace($/use {..}/, "\1")):resolved(relative_to=file) + file_import := Path.without_escaping(line:replace($/use {..}/, "\1")):resolved(relative_to=file) deps:add(Dependency.File(file_import)) else if line:matches($/use {id}/): module_name := line:replace($/use {..}/, "\1") @@ -103,7 +103,7 @@ func main(files:[Text]): for arg in files: if arg:matches($/{..}.tm/): - path := Path.from_unsafe_text(arg):resolved() + path := Path.without_escaping(arg):resolved() dependencies := get_dependency_graph(File(path)) draw_tree(File(path), dependencies) else if arg:matches($/{id}/): -- cgit v1.2.3