Skip to content

Commit 7b238ea

Browse files
committed
Export regex patterns.
1 parent 13c11d1 commit 7b238ea

File tree

1 file changed

+3
-2
lines changed
  • packages/doxdox-parser-custom/src

1 file changed

+3
-2
lines changed

packages/doxdox-parser-custom/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import { firstMatch, matches } from 'super-regex';
1010

1111
const REGEX_TIMEOUT = 1000;
1212

13-
const JSDOC_PATTERN = /(^|[ \t]+)\/\*\*\s*\n?(?:[^*]*(?:\*[^/])?)*\*\//gms;
13+
export const JSDOC_PATTERN =
14+
/(^|[ \t]+)\/\*\*\s*\n?(?:[^*]*(?:\*[^/])?)*\*\//gms;
1415

15-
const IDENTIFIER_PATTERNS = [
16+
export const IDENTIFIER_PATTERNS = [
1617
/(?:class|function|var|let|const)[ ]+([a-z0-9_]+)[ ]*(?:[={(])?/i,
1718
/((?:[a-z0-9_.]+)(\.prototype)?\.(?:[a-z0-9_]+))/i,
1819
/[a-z0-9_]+[ ]*as[ ]*([a-z0-9_]+)/i,

0 commit comments

Comments
 (0)