about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-10-23 19:31:59 -0500
committerDavid Yip <yipdw@member.fsf.org>2017-10-23 19:31:59 -0500
commit8410d33b49d66683f5765b6c6ee5a4a1af5b098f (patch)
tree23dee7accceb49e187641e274bfed53f66468bd3 /lib
parentaf8f06413ee3bab91f1fb89b5828ed9a44e1a6bd (diff)
Only cache the regex text, not the regex itself.
It is possible to cache a Regexp object, but I'm not sure what happens
if e.g. that object remains in cache across two different Ruby versions.
Caching a string seems to raise fewer questions.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions