File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 23
23
var Complex128 = require ( '@stdlib/complex-float64-ctor' ) ;
24
24
var isString = require ( '@stdlib/assert-is-string' ) . isPrimitive ;
25
25
var replace = require ( '@stdlib/string-base-replace' ) ;
26
- var format = require ( '@stdlib/string-format ' ) ;
26
+ var format = require ( '@stdlib/error-tools-fmtprodmsg ' ) ;
27
27
28
28
29
29
// FUNCTIONS //
@@ -64,7 +64,7 @@ function parseComplex128( str ) {
64
64
var im = 0 ;
65
65
66
66
if ( ! isString ( str ) ) {
67
- throw new TypeError ( format ( 'invalid argument. First argument must be a string. Value: `%s`. ' , str ) ) ;
67
+ throw new TypeError ( format ( 'null3F ' , str ) ) ;
68
68
}
69
69
70
70
match = replace ( str , / \s / g, '' ) . match ( regexp ( ) ) ;
Original file line number Diff line number Diff line change 40
40
"@stdlib/assert-is-string" : " ^0.2.2" ,
41
41
"@stdlib/complex-float64-ctor" : " ^0.0.3" ,
42
42
"@stdlib/string-base-replace" : " ^0.2.2" ,
43
- "@stdlib/string-format " : " ^0.2.2" ,
43
+ "@stdlib/error-tools-fmtprodmsg " : " ^0.2.2" ,
44
44
"@stdlib/types" : " ^0.4.3" ,
45
45
"@stdlib/error-tools-fmtprodmsg" : " ^0.2.2"
46
46
},
You can’t perform that action at this time.
0 commit comments