There are various other commas in the same regex that aren't escaped. This one doesn't need escaping either.
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>