selected icon indicating copy to clipboard operation
selected copied to clipboard

Uncaught Error: PCRE does not support \L, \l, \N{name}, \U, or \u

Open ggl opened this issue 6 years ago • 4 comments

Description

When one moves the cursor over code with UTF8 codes like \u00b7 atom triggers an exception. screen shot 2018-03-21 at 16 28 26

Steps to Reproduce

  1. Start Atom
  2. Open a JavaScript file with unicode codes
  3. Move the cursor over the code

Expected behavior: [What you expect to happen]

Should not trigger an exception.

Actual behavior: [What actually happens]

Triggers an exception.

Reproduces how often: [What percentage of the time does it reproduce?]

Every time. 100%.

Versions

Atom : 1.25.0 Electron: 1.7.11 Chrome : 58.0.3029.110 Node : 7.9.0 OS X 10.10.5 Darwin Kernel Version 14.5.0: Sun Jun 4 21:40:08 PDT 2017; root:xnu-2782.70.3~1/RELEASE_X86_64 x86_64

ggl avatar Mar 21 '18 14:03 ggl

Do you have some copy/paste-able snippet to test on?

Doing:

'Testing·';

'Testing·';

Doesn't cause the error; although this package doesn't work with unicode characters (different issue)

Also, what are your highlight selected settings?

richrace avatar Mar 21 '18 14:03 richrace

Yes. Scroll over the \u part. frag.appendChild(document.createTextNode('\u00A0'));

ggl avatar Mar 21 '18 14:03 ggl

👍 Thanks.

Blows up when Only Highlight Whole Words is not ticked.

richrace avatar Mar 21 '18 14:03 richrace

For a less roundabout reference, this is likely caused by https://github.com/atom/superstring/issues/52.

Arcanemagus avatar Mar 21 '18 21:03 Arcanemagus