Swift is throwing an error (fix in body)

18 views
Skip to first unread message

Jaime Boyaca

unread,
Jan 23, 2018, 1:12:34 PM1/23/18
to highlight.js
Hi all,

swift is throwing this error due to incorrectly formatted text:

Uncaught SyntaxError: Invalid regular expression: /\b[A-Z][\wÀ-ʸ']*/: Range out of order in character class

In the JS it looks like:

b: "\\b[A-Z][\\wÀ-ʸ']*",

should be:

b: "\\b[A-Z][\\0-9']*",

Thanks! 
Reply all
Reply to author
Forward
0 new messages