Open throrin19 opened 11 months ago
Hello, I want to migrate from String.js older (but very important code) used tu sanitize string in our apps but I can't recreate the same usage with voca.
Actually I use this with string.js :
S(text).trim() .latinise() .humanize() .stripPunctuation() .underscore().s
And this is the result I want for this strings :
This is really important to keep this sanitized format for us. Without it, all our application is broken for existing data.
Actually, I converted this function doing this :
snakeCase(latinise(text))
But I have problem with text with attached numeric and alphanumeric characters, or with special char between them :
I test many functions and I can't find any voca function to do our sanitized part
Pass the original texts into snakeCase(latinise(text))
Browser/OS type: directly in node 18 Node version: latest node 18 LTS
Expected behavior :smile_cat:
Hello, I want to migrate from String.js older (but very important code) used tu sanitize string in our apps but I can't recreate the same usage with voca.
Actually I use this with string.js :
And this is the result I want for this strings :
This is really important to keep this sanitized format for us. Without it, all our application is broken for existing data.
Actual behavior :crying_cat_face:
Actually, I converted this function doing this :
But I have problem with text with attached numeric and alphanumeric characters, or with special char between them :
I test many functions and I can't find any voca function to do our sanitized part
Steps to reproduce :construction_worker:
Pass the original texts into
snakeCase(latinise(text))
Technical details: :wrench:
Browser/OS type: directly in node 18 Node version: latest node 18 LTS