@chatopera/ms-parser
Advanced tools
Comparing version 1.2.2 to 1.2.5
@@ -261,5 +261,7 @@ 'use strict'; | ||
// Add punctuation at the end so can still match replies that have punctuation | ||
const pattern = new RegExp(`^${gambit.conversation.clean}\\s*[?!.]*$`, 'i'); | ||
const pattern = new RegExp(`^${gambit.conversation.clean}\\s*[?!.?!。,]*$`, 'i'); | ||
if (pattern.test(reply.string.replace(/\\n/g, ' '))) { | ||
repliesMatched.push(id); | ||
} else if (gambit.conversation.clean.trim() === reply.string.trim()) { | ||
repliesMatched.push(id); | ||
} | ||
@@ -266,0 +268,0 @@ }); |
{ | ||
"name": "@chatopera/ms-parser", | ||
"version": "1.2.2", | ||
"description": "The parser interface for SuperScript", | ||
"version": "1.2.5", | ||
"description": "The parser interface for Manuscript", | ||
"main": "./lib/index.js", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
43192
460
12