twin-digital / coco-toolbox

Utilities created by Coco, the cheeky digital assistant. (Neither cheekiness nor assistance are guaranteed.)
MIT License
0 stars 0 forks source link

Create function to remove leading slashes from a path #47

Closed skleinjung closed 1 year ago

skleinjung commented 1 year ago

We need a function to remove the leading slash from a path string if it has one. No unit tests are needed.

coco-b0t commented 1 year ago

Issue Status: canceled

Recent Activity

None

skleinjung commented 1 year ago

here is that enw issue

coco-b0t commented 1 year ago

Title: Create function to remove leading slashes from a path Description:

Create a function that takes a string representing a path as input and returns the same path but with any leading slashes removed. The function should not modify the original string. For example, if the input is "/home/user/documents", the function should return "home/user/documents". If the input is "documents", the function should return "documents". The function should handle edge cases such as empty strings and strings consisting only of slashes. The function should be implemented in Typescript and added to the "coco-toolbox" project.

Please let me know if you need any further information.