rosaenlg-filter
Advanced tools
Comparing version 4.2.5 to 4.2.6
@@ -27,3 +27,3 @@ "use strict"; | ||
}); | ||
const regexSpacesEnd = new RegExp(`\\s+(☜[☜\\s]*)(\\s*)`, 'g'); | ||
const regexSpacesEnd = new RegExp(`\\s+([☜\\s]*☜)(\\s*)`, 'g'); | ||
res = res.replace(regexSpacesEnd, (_match, between, after) => { | ||
@@ -30,0 +30,0 @@ return `${between.replace(/\s/g, '')}${after}`; |
@@ -93,3 +93,3 @@ "use strict"; | ||
const replacedHtml = { replaced: input, elts: [] }; | ||
const regexHtml = new RegExp('<(/?)([a-zA-Z_-]+).*?>', 'g'); // _ to support li_* | ||
const regexHtml = new RegExp('<(/?)([a-zA-Z1-9_-]+).*?>', 'g'); // _ to support li_* ; numbers for h1 etc. tags | ||
replacedHtml.replaced = replacedHtml.replaced.replace(regexHtml, function (match, begin, tag) { | ||
@@ -96,0 +96,0 @@ replacedHtml.elts.push(match); |
@@ -12,3 +12,3 @@ /** | ||
mappings: Mappings; | ||
constructor(protectedString: any, mappings: any); | ||
constructor(protectedString: string, mappings: Mappings); | ||
} | ||
@@ -15,0 +15,0 @@ export declare function unprotect(toUnprotect: string, mappings: Mappings): string; |
{ | ||
"name": "rosaenlg-filter", | ||
"version": "4.2.5", | ||
"version": "4.2.6", | ||
"description": "Filtering feature of RosaeNLG", | ||
@@ -45,6 +45,6 @@ "main": "dist/index.js", | ||
"better-title-case": "^1.0.1", | ||
"english-a-an": "2.2.5", | ||
"english-a-an-list": "2.2.5", | ||
"french-contractions": "4.2.5", | ||
"rosaenlg-commons": "2.2.5", | ||
"english-a-an": "2.2.6", | ||
"english-a-an-list": "2.2.6", | ||
"french-contractions": "4.2.6", | ||
"rosaenlg-commons": "2.2.6", | ||
"titlecase-french": "^1.0.1" | ||
@@ -63,3 +63,3 @@ }, | ||
}, | ||
"gitHead": "882e817aa6e0e5a2a666fd76af1c0f46a5045863" | ||
"gitHead": "b08dab751ca807c22e262b78425c4f949559d882" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
91282
1
66
+ Addedenglish-a-an@2.2.6(transitive)
+ Addedenglish-a-an-list@2.2.6(transitive)
+ Addedfrench-contractions@4.2.6(transitive)
+ Addedrosaenlg-commons@2.2.6(transitive)
- Removedenglish-a-an@2.2.5(transitive)
- Removedenglish-a-an-list@2.2.5(transitive)
- Removedfrench-contractions@4.2.5(transitive)
- Removedrosaenlg-commons@2.2.5(transitive)
Updatedenglish-a-an@2.2.6
Updatedenglish-a-an-list@2.2.6
Updatedfrench-contractions@4.2.6
Updatedrosaenlg-commons@2.2.6