Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Escape @ signs in ID
They lead to Syntax errors otherwise:

```js
$('#canEdit-view23-qwert@fsadfasd\\.yolo');
Error: Syntax error, unrecognized expression: #canEdit-view23-qwert@fsadfasd\.yolo
```
  • Loading branch information
blizzz authored Dec 6, 2016
commit 5c0e3852e57e1458291ae1b04c5f6bc667458ebf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The following function takes care of escaping these characters and places a "#"
```
function jq( myid ) {

return "#" + myid.replace( /(:|\.|\[|\]|,|=)/g, "\\$1" );
return "#" + myid.replace( /(:|\.|\[|\]|,|=|@)/g, "\\$1" );

}
```
Expand Down