Skip to content
Browse files

more debug

  • Loading branch information...
1 parent aeaf593 commit 857f6f9a6469b27daba472e354b3d08b3bb591f0 @torvalamo committed
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) {

0 comments on commit 857f6f9

Please sign in to comment.
Something went wrong with that request. Please try again.