Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
artemov34 opened this issue Apr 9, 2020 · 0 comments
Open

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

artemov34 opened this issue Apr 9, 2020 · 0 comments

Comments

@artemov34
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant