Comparing version 0.2.8 to 0.2.9
{ | ||
"name": "pdf2json", | ||
"_id": "pdf2json@0.2.8", | ||
"version": "0.2.8", | ||
"_id": "pdf2json@0.2.9", | ||
"version": "0.2.9", | ||
"description": "A PDF file parser that converts PDF binaries to text based JSON, powered by porting a fork of PDF.JS to Node.js", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
@@ -481,3 +481,4 @@ /* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | ||
var itemNameStr = stringToPDFString(getInheritableProperty(annotation,'T') || ''); | ||
item.fullName = itemNameStr.replace(/[.\s]+/g, '_'); | ||
itemNameStr = itemNameStr.replace(/[.\s\W]+/g, '_'); //replace spaces and non-word character (not [^a-zA-Z0-9_]) with _ | ||
item.fullName = itemNameStr.replace(/^[\s_,:.;\/\\\d]+/, ''); //replace starting punctuation | ||
@@ -484,0 +485,0 @@ var alternativeText = stringToPDFString(annotation.get('TU') || ''); |
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
3252048
35640