refactor(cli,ext,ops): cleanup `regex` with `lazy-regex`
- bump deps: the newest
lazy-regexneed neweroncecellandregex(not sure if it matters?) - reduce
unwarp - remove dep
lazy_static - make more regex cached
@attila-lin could you port this macro so we don't have to pull the whole dependency?
Yes of course
@attila-lin, I'm still interested in landing this PR, seems like a good change. Any chance you could rebase it?
Be busy last month😅. Working on this today~
@attila-lin, I'm still interested in landing this PR, seems like a good change. Any chance you could rebase it?
hi, I did the rebase.
Thanks for looking into this @attila-lin. From what I can see in changed lines it feels like all of these regex should be lazy statics - there's really no point in having them defined and compile on each invocation of the functions they are defined in.
It would be great if you could lift all of them to the top level of the module as define them as Lazy<Regex>.