FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaScript/archive/code/node_modules/is-extglob/index.js at main · mdlufy/JavaScript · GitHub
mdlufy
/
JavaScript
Public
forked from
iu5git/JavaScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaScript
/
archive
/
code
/
node_modules
/
is-extglob
/
index.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
20 lines (17 loc) · 441 Bytes
Breadcrumbs
JavaScript
/
archive
/
code
/
node_modules
/
is-extglob
/
index.js
Copy path
File metadata and controls
executable file
·
20 lines (17 loc) · 441 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*!
* is-extglob <https://github.com/jonschlinkert/is-extglob>
*
* Copyright (c) 2014-2016, Jon Schlinkert.
* Licensed under the MIT License.
*/
module
.
exports
=
function
isExtglob
(
str
)
{
if
(
typeof
str
!==
'string'
||
str
===
''
)
{
return
false
;
}
var
match
;
while
(
(
match
=
/
(
\\
)
.
|
(
[
@
?
!
+
*
]
\(
.
*
\)
)
/
g
.
exec
(
str
)
)
)
{
if
(
match
[
2
]
)
return
true
;
str
=
str
.
slice
(
match
.
index
+
match
[
0
]
.
length
)
;
}
return
false
;
}
;
Back
|
FazBrowse Home
|
New Git URL