Home forums Report Bugs Minor regex issue

This topic contains 1 reply, has 2 voices, and was last updated by  Suyash Singh 21 hours, 51 minutes ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15165

    Rob
    Member
    if (typeof (Blob) !== "undefined" && !!new Blob()) {
        //alert("blob");
        var imgData = img.replace(/^data:[a-z\/]*;base64,/, ''); // This line needs the \ added to the regexp  
    
        var byteString = atob(imgData);
        var buffer = new ArrayBuffer(byteString.length);

    Having a separator inside a grouping is undefined, and may or may not work. Adding the backslash fixes it right up.

    This is line 1560 of canvasjs.js

    #15180

    Suyash Singh
    Moderator

    @sangoma,

    Thanks for the suggestion. I will discuss this with the team members and make changes if necessary.

    ___
    Suyash Singh
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.