HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Organising Civil Tongue

id2did2d New
edited September 4 in Feedback

Quick question.

It says in docs that it is words separated by ;

Would it cause any issues to use separate lines as well?

wordone;

wordtwo;

wordthree;

...seems to work after a quick test without any issues.

What about more organisation...

;;;;;;;;MainList;;;;;;;;

wordone;

wordtwo;

wordthree;

;

;;;;;;TemporaryBannedWords;;;;;;

wordone;

wordtwo;

wordthree;

...again. Seems to work completely fine.

Tagged:
jmelo

Comments

  • Yes, you can do it like in your first example. CivilTongue trims each word:

    The second example however would add "MainList" and "TemporaryBannedWords" to the list which is probably not what you want.

    id2d
  • id2did2d New
    edited August 21

    Thanks!

    The reason those words in second example being combined words without spaces was because no forum member is ever going to write the word "TemporaryBannedWords" on a forum post, so it doesn't really matter that they're banned. For better organisation, and so it's more prominent, it would also be cool to write it like

    ###TemporaryBannedWords###;

    or

    ###Temporary_Banned_Words###;

    ...but not sure how it would cause issues to use special characters like # or underlines?

  • The only special character is ;

    Everything else is interpreted as a word (without whitespace). So yes, you can use hashes and underscores knowing it will be interpreted as a banned word.

    id2d
  • Thanks again.

    I was doing more experimenting and found that you can use phrases. Use -

    one;

    two three;

    four;

    and the phrase "two three" is banned.

    but if you do

    one;

    two;

    two three;

    four

    "two three" isn't banned. Presumably because it's got to "two" and changed it before "two three"

    But change the order

    one;

    two three;

    two;

    four

    and both "two three" and "two" are banned!

    ...so spaces between words make the whole be counted as a word, but spaces outside are stripped(?).

    It would really help if the documentation documented this kind of stuff.

  • LincLinc Former Staff Detroit Admin
    edited August 23

    It would really help if the documentation documented this kind of stuff.

    You're greatly overestimating how much thought was put into that addon. It's one of those "if folks require this, fine" features, but we never advertised its existence. You've already done far more with it than I've ever seen.

    I'd encourage you to add it to the docs, but it doesn't appear folks can contribute to them anymore.

Sign In or Register to comment.