Hello when trimming a file path under a news collection the following outputs ws/this-is-a-test.md removing the leading “ne” if I change the collection name from news to anything else it’s trimming correctly. Why is “ne” being stripped out? I also tried trim left and same results
It’s removing all the characters from the left and right that are found in the second argument, regardless of where they are. So it gets to w which isn’t in the second argument and stops removing things. You might try the replace function or strings.TrimPrefix.