16 lines
225 B
TypeScript
Raw Normal View History

export const sanitise = (str) => {
2023-07-15 08:08:36 +00:00
return str
2023-07-15 08:08:36 +00:00
// TODO: maybe sanitise
2023-07-15 08:08:36 +00:00
const ret = ""
2023-07-15 08:08:36 +00:00
const value = str?.trim()
2023-07-15 08:08:36 +00:00
// remove any leading "tt" or "thingtime"
2023-07-15 08:08:36 +00:00
const toSanitise = ["tt", "thingtime"]
return ret
}