atom / symbols-view

Jump to symbols in Atom
MIT License
165 stars 115 forks source link

Remove a redundant caret in the regex in symbols-view.js #228

Closed segevfiner closed 6 years ago

segevfiner commented 6 years ago

Requirements

Description of the Change

Remove a double caret from a regex in symbols-view.js. To the best of my understanding, this just matches the start of the string twice, which is a no-op.

Benefits

Cleanup.

Possible Drawbacks

None, unless this double caret holds some secret meaning I don't know about. 😉

50Wliu commented 6 years ago

None, unless this double caret holds some secret meaning I don't know about. 😉

Wouldn't surprise me if JavaScript did decide to assign a special meaning to it 🙊