@rip-lang/server 1.4.13 → 1.4.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/serving/static.rip +2 -1
package/package.json
CHANGED
package/serving/static.rip
CHANGED
|
@@ -271,7 +271,8 @@ HLJS_LANG_MAP =
|
|
|
271
271
|
jsonc: 'json', gql: 'graphql'
|
|
272
272
|
|
|
273
273
|
export isTextFile = (filePath) ->
|
|
274
|
-
|
|
274
|
+
name = basename(filePath).toLowerCase()
|
|
275
|
+
ext = name.slice(name.lastIndexOf('.') + 1)
|
|
275
276
|
not BINARY_EXTS.has(ext)
|
|
276
277
|
|
|
277
278
|
hljsLang = (filePath) ->
|