mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-12 07:30:46 +02:00
Merge pull request #2550 from overleaf/jpa-strip-tex
[autocomplete] input/include: strip the .tex extension GitOrigin-RevId: 15ae910e38717382a734848c33cbdb3c66a75ac9
This commit is contained in:
+2
-1
@@ -107,9 +107,10 @@ define([
|
||||
for (let file of Files.getTeXFiles()) {
|
||||
if (file.id !== this.$scope.docId) {
|
||||
const { path } = file
|
||||
let cleanPath = path.replace(/(.+)\.tex$/i, '$1')
|
||||
result.push({
|
||||
caption: `\\${commandName}{${path}}`,
|
||||
value: `\\${commandName}{${path}}`,
|
||||
value: `\\${commandName}{${cleanPath}}`,
|
||||
meta: 'file',
|
||||
score: 50
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user