File tree 3 files changed +5
-8
lines changed
lib/node_modules/@stdlib/regexp/semver
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 21
21
var reSemVer = require ( './../lib' ) ;
22
22
23
23
var RE_SEMVER = reSemVer ( ) ;
24
- var version ;
25
- var bool ;
26
24
27
- version = '1.0.0' ;
28
- bool = RE_SEMVER . test ( version ) ;
25
+ var version = '1.0.0' ;
26
+ var bool = RE_SEMVER . test ( version ) ;
29
27
console . log ( '%s => %s' , version , bool ) ;
30
28
31
29
version = '1.0.0-alpha.1' ;
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license Apache-2.0
3
3
*
4
- * Copyright (c) 2021 The Stdlib Authors.
4
+ * Copyright (c) 2022 The Stdlib Authors.
5
5
*
6
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
7
* you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @license Apache-2.0
3
3
*
4
- * Copyright (c) 2018 The Stdlib Authors.
4
+ * Copyright (c) 2022 The Stdlib Authors.
5
5
*
6
6
* Licensed under the Apache License, Version 2.0 (the "License");
7
7
* you may not use this file except in compliance with the License.
21
21
// MODULES //
22
22
23
23
var tape = require ( 'tape' ) ;
24
- var Function = require ( '@stdlib/function/ctor' ) ;
25
24
var reSemVer = require ( './../lib/main.js' ) ;
26
25
27
26
28
27
// TESTS //
29
28
30
29
tape ( 'main export is a function' , function test ( t ) {
31
30
t . ok ( true , __filename ) ;
32
- t . equal ( reSemVer instanceof Function , true , 'main export is a function' ) ;
31
+ t . equal ( typeof reSemVer , 'function' , 'main export is a function' ) ;
33
32
t . end ( ) ;
34
33
} ) ;
35
34
You can’t perform that action at this time.
0 commit comments