Pulsar-Edit-Highlights / selected

@Pulsar-Edit package for highlighting occurrences of your selection.

Home Page:https://web.pulsar-edit.dev/packages/highlight-selected

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught SyntaxError: Invalid regular expression: /[$@%-" ]/: Range out of order in character class

JBJackle opened this issue · comments

[Enter steps to reproduce:]

  1. set it to be able to select + and "
  2. select one of those characters to be highlighted.

Atom: 1.34.0 x64
Electron: 2.0.16
OS: Microsoft Windows 7 Professional
Thrown From: highlight-selected package 0.14.0

Stack Trace

Uncaught SyntaxError: Invalid regular expression: /[$@%-" ]/: Range out of order in character class

At C:\Users\burgstaler\.atom\packages\highlight-selected\lib\highlighted-area-view.coffee:147

SyntaxError: Invalid regular expression: /[$@%-" ]/: Range out of order in character class
    at new RegExp (<anonymous>)
    at HighlightedAreaView.module.exports.HighlightedAreaView.handleSelection (/packages/highlight-selected/lib/highlighted-area-view.coffee:147:9)
    at HighlightedAreaView.handleSelection (/packages/highlight-selected/lib/highlighted-area-view.coffee:1:1)
    at HighlightedAreaView.module.exports.HighlightedAreaView.subscribeToActiveTextEditor (/packages/highlight-selected/lib/highlighted-area-view.coffee:109:6)
    at /packages/highlight-selected/lib/highlighted-area-view.coffee:32:8
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:1172318)
    at Emitter.emit (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:1173759)
    at Workspace.didActivatePaneContainer (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:424001)
    at Dock.subscriptions.l.paneContainer.onDidActivatePane (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:468778)
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:1172318)
    at Emitter.emit (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:1173759)
    at PaneContainer.didActivatePane (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:446187)
    at Pane.activate (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:463512)
    at Pane.focus (~/AppData/Local/atom/app-1.34.0/resources/app/static/<embedded>:11:454965)
    at HTMLElement.handleFocus (/app.asar/src/pane-element.js:41:20)

Commands

     -6:31.1.0 grammar-selector:show (input.hidden-input)
     -6:24.3.0 core:copy (span.syntax--source.syntax--sql)
  3x -6:22.6.0 editor:newline (input.hidden-input)
     -6:21.6.0 core:paste (input.hidden-input)
     -6:14.7.0 core:cut (span.syntax--source.syntax--sql)
     -6:13.7.0 core:backspace (input.hidden-input)
  3x -6:03.0 core:undo (input.hidden-input)
     -4:55.1.0 core:paste (div.highlights)
  2x -4:34.8.0 highlight-selected:toggle (input.hidden-input)
     -4:24.2.0 settings-view:open (input.hidden-input)
     -1:56.2.0 core:backspace (input.hidden-input)
     -1:04.0 grammar-selector:show (input.hidden-input)
     -1:02.2.0 core:confirm (input.hidden-input)

Non-Core Packages

atom-beautify 0.33.4 
atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
city-lights-syntax 1.1.8 
city-lights-ui 1.5.3 
compare-files 0.8.1 
file-icons 2.1.30 
find-scroll-marker 0.1.3 
highlight-selected 0.14.0 
minimap 4.29.9 
minimap-highlight-selected 4.6.1 
minimap-split-diff 0.3.7 
open-recent 5.0.0 
pane-layout-plus 0.7.4 
scroll-marker 0.3.2 
seti-icons 1.5.4 
seti-syntax 1.2.0 
seti-ui 1.11.0 
split-diff 1.6.0 
styri-syntax 1.0.0