fix(english/novel7s): fix paragraph parser for smart quotes (#2454)
This commit is contained in:
@@ -74,7 +74,7 @@ class Novel7sPlugin implements Plugin.PluginBase {
|
|||||||
icon = 'src/en/novel7s/icon.png';
|
icon = 'src/en/novel7s/icon.png';
|
||||||
site = 'https://novel7s.com';
|
site = 'https://novel7s.com';
|
||||||
rest = `${this.site}/wp-json/wp/v2`;
|
rest = `${this.site}/wp-json/wp/v2`;
|
||||||
version = '1.0.0';
|
version = '1.0.1';
|
||||||
|
|
||||||
filters = {
|
filters = {
|
||||||
sort: {
|
sort: {
|
||||||
@@ -235,7 +235,7 @@ class Novel7sPlugin implements Plugin.PluginBase {
|
|||||||
if (!text) continue;
|
if (!text) continue;
|
||||||
|
|
||||||
// If it ends like a complete sentence, keep separate
|
// If it ends like a complete sentence, keep separate
|
||||||
if (/[.!?…]["'"']?$/.test(text)) continue;
|
if (/[.!?…]["'”’»]?$/.test(text)) continue;
|
||||||
|
|
||||||
$(current).append(' ');
|
$(current).append(' ');
|
||||||
$(current).append($(next).contents());
|
$(current).append($(next).contents());
|
||||||
|
|||||||
Reference in New Issue
Block a user