Skip to content

Commit

Permalink
FEAT: allow any string as input to the to-ascii function
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jul 11, 2024
1 parent cd366fa commit 4a8fb22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/to-ascii.reb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ Rebol [
name: to-ascii
type: module
options: [delay]
version: 0.1.0
version: 0.1.1
exports: [to-ascii]
author: @Oldes
file: %to-ascii.reb
home: https://src.rebol.tech/modules/to-ascii.reb
]
to-ascii: function [
"Return a string with characters transliterated to ASCII"
text [string!] "String to be converted"
text [any-string!] "String to be converted"
/keep "Keep unhandled non-ASCII characters"
][
out: make string! length? text
Expand All @@ -23,7 +23,7 @@ to-ascii: function [
)
| set s: skip (if keep [append out s])
]]
out
as type? text out
]

ascii-chars: make bitset! #{FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF}
Expand Down

0 comments on commit 4a8fb22

Please sign in to comment.