Skip to content
Snippets Groups Projects
Commit 0fd6dcc5 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'fixes' into 'pregmod-master'

Browser compatibility fix

See merge request pregmodfan/fc-pregmod!3278
parents a3eacb77 578d1533
No related branches found
No related tags found
No related merge requests found
...@@ -4488,24 +4488,20 @@ window.originPronounReplace = function(slave) { ...@@ -4488,24 +4488,20 @@ window.originPronounReplace = function(slave) {
case "She was the private slave of a con artist cult leader before he had to abandon her and flee.": case "She was the private slave of a con artist cult leader before he had to abandon her and flee.":
case "You helped her give birth, leaving her deeply indebted to you.": case "You helped her give birth, leaving her deeply indebted to you.":
case "You purchased her from a King after she expressed knowledge of the prince's affair with another servant.": case "You purchased her from a King after she expressed knowledge of the prince's affair with another servant.":
/* r = r.replace(/\bherself\b/g, slave.objectReflexive);
r = r.replace(/(?<=\s)herself(?=\s|,|\.|;|\?|!)/g, slave.objectReflexive); r = r.replace(/\bHerself\b/g, capFirstChar(slave.objectReflexive));
r = r.replace(/(?<=\s|^)Herself(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.objectReflexive)); r = r.replace(/\bshe\b/g, slave.pronoun);
r = r.replace(/(?<=\s)she(?=\s|,|\.|;|\?|!)/g, slave.pronoun); r = r.replace(/\bShe\b/g, capFirstChar(slave.pronoun));
r = r.replace(/(?<=\s|^)She(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.pronoun)); r = r.replace(/\bher\b/g, slave.object);
r = r.replace(/(?<=\s)her(?=\s|,|\.|;|\?|!)/g, slave.object); r = r.replace(/\bHer\b/g, capFirstChar(slave.object));
r = r.replace(/(?<=\s|^)Her(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.object));
*/
return r; return r;
default: default:
/* r = r.replace(/\bherself\b/g, slave.objectReflexive);
r = r.replace(/(?<=\s)herself(?=\s|,|\.|;|\?|!)/g, slave.objectReflexive); r = r.replace(/\bHerself\b/g, capFirstChar(slave.objectReflexive));
r = r.replace(/(?<=\s|^)Herself(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.objectReflexive)); r = r.replace(/\bshe\b/g, slave.pronoun);
r = r.replace(/(?<=\s)she(?=\s|,|\.|;|\?|!)/g, slave.pronoun); r = r.replace(/\bShe\b/g, capFirstChar(slave.pronoun));
r = r.replace(/(?<=\s|^)She(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.pronoun)); r = r.replace(/\bher\b/g, slave.possessive);
r = r.replace(/(?<=\s)her(?=\s|,|\.|;|\?|!)/g, slave.possessive); r = r.replace(/\bHer\b/g, capFirstChar(slave.possessive));
r = r.replace(/(?<=\s|^)Her(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.possessive));
*/
return r; return r;
} }
}; };
...@@ -1219,24 +1219,20 @@ window.originPronounReplace = function(slave) { ...@@ -1219,24 +1219,20 @@ window.originPronounReplace = function(slave) {
case "She was the private slave of a con artist cult leader before he had to abandon her and flee.": case "She was the private slave of a con artist cult leader before he had to abandon her and flee.":
case "You helped her give birth, leaving her deeply indebted to you.": case "You helped her give birth, leaving her deeply indebted to you.":
case "You purchased her from a King after she expressed knowledge of the prince's affair with another servant.": case "You purchased her from a King after she expressed knowledge of the prince's affair with another servant.":
/* r = r.replace(/\bherself\b/g, slave.objectReflexive);
r = r.replace(/(?<=\s)herself(?=\s|,|\.|;|\?|!)/g, slave.objectReflexive); r = r.replace(/\bHerself\b/g, capFirstChar(slave.objectReflexive));
r = r.replace(/(?<=\s|^)Herself(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.objectReflexive)); r = r.replace(/\bshe\b/g, slave.pronoun);
r = r.replace(/(?<=\s)she(?=\s|,|\.|;|\?|!)/g, slave.pronoun); r = r.replace(/\bShe\b/g, capFirstChar(slave.pronoun));
r = r.replace(/(?<=\s|^)She(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.pronoun)); r = r.replace(/\bher\b/g, slave.object);
r = r.replace(/(?<=\s)her(?=\s|,|\.|;|\?|!)/g, slave.object); r = r.replace(/\bHer\b/g, capFirstChar(slave.object));
r = r.replace(/(?<=\s|^)Her(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.object));
*/
return r; return r;
default: default:
/* r = r.replace(/\bherself\b/g, slave.objectReflexive);
r = r.replace(/(?<=\s)herself(?=\s|,|\.|;|\?|!)/g, slave.objectReflexive); r = r.replace(/\bHerself\b/g, capFirstChar(slave.objectReflexive));
r = r.replace(/(?<=\s|^)Herself(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.objectReflexive)); r = r.replace(/\bshe\b/g, slave.pronoun);
r = r.replace(/(?<=\s)she(?=\s|,|\.|;|\?|!)/g, slave.pronoun); r = r.replace(/\bShe\b/g, capFirstChar(slave.pronoun));
r = r.replace(/(?<=\s|^)She(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.pronoun)); r = r.replace(/\bher\b/g, slave.possessive);
r = r.replace(/(?<=\s)her(?=\s|,|\.|;|\?|!)/g, slave.possessive); r = r.replace(/\bHer\b/g, capFirstChar(slave.possessive));
r = r.replace(/(?<=\s|^)Her(?=\s|,|\.|;|\?|!)/g, capFirstChar(slave.possessive));
*/
return r; return r;
} }
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment