Browse Source

logs-content: Changed possessive prefix to be based on shortName, not nick's prefix. E.g. Linda_Vasquez => Linda's, not Linda'

1.0
Gisle Aune 6 years ago
parent
commit
db069d1c1a
  1. 6
      marko/page/logs-content/components/post/component.js

6
marko/page/logs-content/components/post/component.js

@ -56,10 +56,8 @@ module.exports = class {
this.state.name = character.name
this.state.shortName = character.shortName
if (input.post.nick.endsWith("'s")) {
this.state.nameSuffix = "'s"
} else if (input.post.nick.endsWith("'")) {
this.state.nameSuffix = "'"
if (input.post.nick.endsWith("'s") || input.post.nick.endsWith("'")) {
this.state.nameSuffix = (character.shortName.endsWith("s") || character.shortName.endsWith("z")) ? "'" : "'s"
}
return

Loading…
Cancel
Save