jsdoc-type-pratt-parser
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -7,3 +7,2 @@ import 'mocha'; | ||
export interface Fixture { | ||
description: string; | ||
modes: ParseMode[]; | ||
@@ -10,0 +9,0 @@ jtp: { |
{ | ||
"name": "jsdoc-type-pratt-parser", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -42,6 +42,6 @@ import { Token, TokenType } from './Token' | ||
const identifierStartRegex = /[\p{ID_Start}$_]/u | ||
const identifierStartRegex = /[$_\p{ID_Start}]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u | ||
// A hyphen is not technically allowed, but to keep it liberal for now, | ||
// adding it here | ||
const identifierContinueRegex = /[$\-\p{ID_Continue}\u200C\u200D]/u | ||
const identifierContinueRegex = /[$\-\p{ID_Continue}\u200C\u200D]|\\u\p{Hex_Digit}{4}|\\u\{0*(?:\p{Hex_Digit}{1,5}|10\p{Hex_Digit}{4})\}/u | ||
function getIdentifier (text: string): string|null { | ||
@@ -48,0 +48,0 @@ let char = text[0] |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223812
112
6365