File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
lib/node_modules/@stdlib/regexp/semver Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 2121var reSemVer = require ( './../lib' ) ;
2222
2323var 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 ) ;
2927console . log ( '%s => %s' , version , bool ) ;
3028
3129version = '1.0.0-alpha.1' ;
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff line change 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.
2121// MODULES //
2222
2323var tape = require ( 'tape' ) ;
24- var Function = require ( '@stdlib/function/ctor' ) ;
2524var reSemVer = require ( './../lib/main.js' ) ;
2625
2726
2827// TESTS //
2928
3029tape ( '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
You can’t perform that action at this time.
0 commit comments