Skip to content

Commit

Permalink
Detect invalid content (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Jul 11, 2023
1 parent 7b3c180 commit bb50a00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5378,6 +5378,7 @@ view.ModelFactoryService = class {
{ name: 'Unity metadata', value: /^fileFormatVersion:/ },
{ name: 'Python source code', value: /^\s*('''.*''')?\s*import[ ]+[a-zA-Z_]\w*(\.[a-zA-Z_]\w*)*([ ]+as[ ]+[a-zA-Z]\w*)?[ ]*(,|;|\n|\r\n)/ },
{ name: 'Python source code', value: /^\s*('''.*''')?\s*from[ ]+([a-zA-Z_]\w*(\.[a-zA-Z_]\w*)*)[ ]+import[ ]+[a-zA-Z]\w*[ ]+/ },
{ name: 'Python virtual environment configuration', value: /^home[ ]*=[ ]*/, identifier: 'pyvenv.cfg' },
{ name: 'Bash script', value: /^#!\/usr\/bin\/env\s/ },
{ name: 'Bash script', value: /^#!\/bin\/bash\s/ },
{ name: 'TSD header', value: /^%TSD-Header-###%/ },
Expand Down

0 comments on commit bb50a00

Please sign in to comment.