improve iterate parameter

This commit is contained in:
cajun
2024-10-07 17:35:01 -05:00
parent 67ee280c32
commit 5ab2a404ed
4 changed files with 21 additions and 7 deletions

View File

@@ -1068,7 +1068,13 @@ iterate_fix := remove_tags
+replace@(match: "^\\.", replace:"")
+replace@(match: "^,", replace:"")
+replace@(match: "^[ ]", replace:"")
+replace@(match:" times", replace:"")
+replace@(match:" ti?m?e?s?$", replace:"")
iterate_string := {
str := iterate_fix(input)
if str == ""
then empty_lead + empty + empty_follow
else non_empty_lead + str + non_empty_follow
}@(non_empty_lead:" ", non_empty_follow:"", empty_lead:"", empty_follow:"", empty:"")
digital_map := [
"zero": 0,
"one": 1,