Closed adam-lynch closed 3 years ago
Yeah, good idea. PR welcome.
Example of what's required to add an option: https://github.com/sindresorhus/normalize-url/commit/18effbe37a89f86841b8a1e24200ee3631719214
So it would be a new option? E.g.
normalizeUrl('...', {stripHash: false, stripTextFragment: true});
Correct
https://web.dev/text-fragments/. Text fragments are currently supported in Edge, Chrome, and some mobile browsers. Google use/used them in search results.
Expected behaviour:
I currently need to do this but I'm not sure many will so maybe it's not worth having to maintain an option for it.