Hi, > What will happen if "restrict" will be undefined ?
A null restrict according to the comment mean any characters means nothing is restricted same as an empty string and that make sense. Undefined is well undefined :-) having an undefined restrict doesn’t really make any sense so I don’t know what the expected behaviour should be. If you do pass in undefined in it will throw an exception, perhaps it should not do that but I’m not sure. Thanks, Justin