UNPKG
docblock-parser
Version:
latest (1.0.0)
1.0.0
0.1.3
0.1.2
0.1.1
A standalone docblock parser
github.com/fkling/docblock-parser
fkling/docblock-parser
docblock-parser
/
lib
/
predicates.js
13 lines
(11 loc)
•
236 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict"
;
var
TAG_PATTERN
=
/^\s*@[^\s]+/
;
module
.
exports
= {
isEmptyLine
:
function
isEmptyLine
(
line
) {
return
(
/^\s*$/
.
test
(line) ); },
isTagLine
:
function
isTagLine
(
line
) {
return
TAG_PATTERN
.
test
(line); } };