Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

more debug

  • Loading branch information...
commit 857f6f9a6469b27daba472e354b3d08b3bb591f0 1 parent aeaf593
@torvalamo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  argtype.js
View
2  argtype.js
@@ -98,10 +98,10 @@ function argtype(thisObj, args, func) {
, current = -1
, ptr
, re = /^(\?)?(0)?(\+)?([\.nifsbcoat])(?:\=(\(|\[)(\-?(\d+(?:.\d+)?)?)\,(\-?(\d+(?:.\d+)?)?)(\)|\])|((?:\>|\<)\=?)(\-?\d+(?:.\d+)?)|\/(.*))?$/i
- , matches = null
// Parse the arguments list
for (; a < len ; a++) {
+ var matches
if (typeof args[a] == 'string' && (matches = args[a].match(re))) {
// Does the string have proper argtype format?
if (matches === null) {
Please sign in to comment.
Something went wrong with that request. Please try again.