CintraAI commited on
Commit
6e9546e
·
1 Parent(s): b7b387e

added new ts ruby php to app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -50,6 +50,12 @@ def get_language_by_extension(file_extension):
50
  return 'javascript'
51
  elif file_extension == 'css':
52
  return 'css'
 
 
 
 
 
 
53
  else:
54
  return None
55
 
 
50
  return 'javascript'
51
  elif file_extension == 'css':
52
  return 'css'
53
+ elif file_extension in ['ts', 'typescript', 'tsx']:
54
+ return 'typescript'
55
+ elif file_extension in ['rb', 'ruby']:
56
+ return 'ruby'
57
+ elif file_extension == 'php':
58
+ return 'php'
59
  else:
60
  return None
61