Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-04-14 00:37:49 +03:00
parent 8d5425fe74
commit 1069c61f1a

View File

@ -20,6 +20,11 @@ object.Mixin('RegExpMixin', 'soft', {
quoteRegExp: function(str){
return str
.replace(/([\.\\\/\(\)\[\]\$\*\+\-\{\}\@\^\&\?\<\>])/g, '\\$1') }
// XXX add introspection interface...
// - number of groups
// - group info
// - ...
})