Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
!
This script has a good balance of speed and its clean to read. Nice work.
Firefox has an experimental
.flags
property onRegExp
instances, which is not supported by any other JavaScript implementation (including Node, which is based on Chrome's V8 JS Engine). https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/flags#Browser_compatibilityThis was the output from my console:
var reg = /123/g
undefined
reg.flags
"g"
reg.source
"123"
I only used the flags property in the constructor after several test iterations. I'll try it without that and see how it responds.
/regex/.flags
isn't a thing. You'll have to build a flags string or seomthing; that should fix the problem. Let me know how you get on.This comment is hidden because it contains spoiler information about the solution
Shouldn't there also be a test for the inclusion of the "thisArg" implementation?