Topic on Extension talk:Arrays

Disallowed character combinations?

3
Cavila (talkcontribs)

I think I just bumped into a weird character issue. I fed a string to an array using regex that allow for multiple delimiters (“ or ” = quotation marks). See code below. The body of the wiki page turned up blank. The problematic part of the string appeared to be the en dash – (not to be confused with - or the em dash) in combination with those delimiters. Removing it from the string solves it as does including the en dash among the delimiters.

{{#arraydefine:@somearray|Bla bla bla bla – oh well bla bla |/[“”]/}} {{#arrayprint:@somearray|;}}

Not sure if those quotation marks hold any special meaning in the syntax.

Dinoguy1000 (talkcontribs)

This sounds a lot like the issue I ran into in this topic four years ago. To be clear, are you saying that an en dash causes this, but an em dash does not?

Cavila (talkcontribs)

No, I was trying to make unambiguously clear what character was causing trouble in this specific case. I just tested the same string with the em dash and the same thing happens. It does resemble the issue you ran into but I'm vague about the details. I should test if the problem can be worked around by resorting to a piped sequence of characters or character strings.

Reply to "Disallowed character combinations?"