Skip to content

Commit fd1edcb

Browse files
committed
Update years and simplify code
1 parent ca9a38d commit fd1edcb

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

lib/node_modules/@stdlib/regexp/semver/examples/index.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@
2121
var reSemVer = require( './../lib' );
2222

2323
var RE_SEMVER = reSemVer();
24-
var version;
25-
var bool;
2624

27-
version = '1.0.0';
28-
bool = RE_SEMVER.test( version );
25+
var version = '1.0.0';
26+
var bool = RE_SEMVER.test( version );
2927
console.log( '%s => %s', version, bool );
3028

3129
version = '1.0.0-alpha.1';

lib/node_modules/@stdlib/regexp/semver/lib/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2021 The Stdlib Authors.
4+
* Copyright (c) 2022 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.

lib/node_modules/@stdlib/regexp/semver/test/test.main.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license Apache-2.0
33
*
4-
* Copyright (c) 2018 The Stdlib Authors.
4+
* Copyright (c) 2022 The Stdlib Authors.
55
*
66
* Licensed under the Apache License, Version 2.0 (the "License");
77
* you may not use this file except in compliance with the License.
@@ -21,15 +21,14 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var Function = require( '@stdlib/function/ctor' );
2524
var reSemVer = require( './../lib/main.js' );
2625

2726

2827
// TESTS //
2928

3029
tape( 'main export is a function', function test( t ) {
3130
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' );
3332
t.end();
3433
});
3534

0 commit comments

Comments
 (0)