Skip to content

Drop exception if string has \n or \r #637

@artemov34

Description

@artemov34

if (data.types[bb].indexOf("start") > -1) {

angular.js?7245:15570 TypeError: Cannot read property 'indexOf' of undefined
at beautify_markup_apply_multiline_lev (eval at module.exports (addScript.js?3fe7:27), :12572:27)
at beautify_markup_apply_multiline (eval at module.exports (addScript.js?3fe7:27), :12577:22)
at beautify_markup_apply (eval at module.exports (addScript.js?3fe7:27), :12631:25)
at Object.beautify_markup [as markup] (eval at module.exports (addScript.js?3fe7:27), :12667:10)
at mode (eval at module.exports (addScript.js?3fe7:27), :2030:70)

Need to check data.types[bb] && data.types[bb].indexOf("start") > -1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions