Why does jQuery 1.4.2 compression have a syntax error?

I have always noticed this, including in versions earlier. About halfway through the compressed jQuery version, you'll see some regular expression:

[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^

The error is displayed in ['"]

I'm sure this is not a syntax error, but all my code editors recognize it as one, which makes development a pain if I try to combine JavaScript files. Does anyone know what is going on here?

+3
source share
2 answers

This is a regular expression character object, as indicated by square brackets. They have no restrictions on quotation marks. All that happens is syntax highlighting. Ask the developer of your editor.

+4
source

, , , .

, , ,

+2

Source: https://habr.com/ru/post/1764533/


All Articles