Results 1 to 3 of 3

Thread: Double Space in a province name

  1. #1
    Member
    Join Date
    Jan 2012
    Posts
    16

    Double Space in a province name

    Two consecutive spaces is allowed in province names and this causes all kinds of havoc for parsers.

    HTML will display the the two spaces, but if you ctrl+c/ctrl+v the page it'll convert it to a single space.

    I'd recommend we simply disallow consecutive spaces in province names to prevent abuse as well.

    For an example, check out Craiova Maxima (6:2)

  2. #2
    Enthusiast
    Join Date
    Aug 2011
    Posts
    332
    Province Name: test test (1:1)

    Regex: (.*) \((1:1)\)

    https://regex101.com/r/zJAQZQ/1

  3. #3
    Member
    Join Date
    Jan 2012
    Posts
    16
    Quote Originally Posted by Darkmoore View Post
    Province Name: test test (1:1)

    Regex: (.*) \((1:1)\)

    https://regex101.com/r/zJAQZQ/1
    The point isn't that I can't match it, its that it appears as two separate provinces depending on data source.

    If a user copies a page, I take intel for a province named "test test (1:1)"

    If the user submits intel via the in-game intel pusher, or my addons where the html is grabbed, its "test(imagine a double space here)test (1:1)"

    Trying to reconcile this would be a pain, and it would be impossible "test test" and "test test" could both exist in-game

    edit: You can see this effect even here, if you try to double space something, the display nukes it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •