let a = """
a
️b
"""
a.contains("\n") // false
It seems there is a strange character in the string right after the return.
a.forEach(){ c in
print(Character(String(c)).asciiValue)
}
Output:
Optional(97)
Optional(10) // the return
nil
Optional(98)
Is this a bug of contains method that results in negatively recognizing the return character while it is followed by some strange ones?