iansinnott / react-string-replace

A simple way to safely do string replacement with React components
MIT License
652 stars 56 forks source link

remove dependency of lodash #71

Closed bianzheCN closed 2 years ago

bianzheCN commented 2 years ago

https://github.com/iansinnott/react-string-replace/issues/66

Replace lodash with inlined codes~

Hope it's helpful.

bianzheCN commented 2 years ago

@iansinnott

tomconder commented 2 years ago

+1 on this. Removing lodash removes an "arbitrary code execution" security vulnerability flagged by my scanning tool.

iansinnott commented 2 years ago

Cheers, thanks @bianzheCN . Having zero external dependencies is a nice feature for utility libs like this