Skip to content

Commit 4a8fb22

Browse files
committed
FEAT: allow any string as input to the to-ascii function
1 parent cd366fa commit 4a8fb22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/modules/to-ascii.reb

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Rebol [
44
name: to-ascii
55
type: module
66
options: [delay]
7-
version: 0.1.0
7+
version: 0.1.1
88
exports: [to-ascii]
99
author: @Oldes
1010
file: %to-ascii.reb
1111
home: https://src.rebol.tech/modules/to-ascii.reb
1212
]
1313
to-ascii: function [
1414
"Return a string with characters transliterated to ASCII"
15-
text [string!] "String to be converted"
15+
text [any-string!] "String to be converted"
1616
/keep "Keep unhandled non-ASCII characters"
1717
][
1818
out: make string! length? text
@@ -23,7 +23,7 @@ to-ascii: function [
2323
)
2424
| set s: skip (if keep [append out s])
2525
]]
26-
out
26+
as type? text out
2727
]
2828

2929
ascii-chars: make bitset! #{FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF}

0 commit comments

Comments
 (0)