Spaces:
Running
Running
added new ts ruby php to app.py
Browse files
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 |
|