What is the best way to convert a Ruby string range to a Range object

后端 未结 8 2135
一生所求
一生所求 2020-12-29 23:38

I have some Ruby code which takes dates on the command line in the format:

-d 20080101,20080201..20080229,20080301

I want to run for all da

8条回答
  •  孤城傲影
    2020-12-30 00:02

    Ranger uses regex to validate strings with no SQL injection fear, and then eval.

提交回复
热议问题