mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 17:51:51 +02:00
Merge pull request #1505 from sharelatex/ns-fix-regex
remove unecessary $ from regex GitOrigin-RevId: 5998536f71298daeab2845d070150451bbb4a858
This commit is contained in:
committed by
sharelatex
parent
b39626751a
commit
f01f80c2bb
@@ -130,7 +130,7 @@ define(['base'], function(App) {
|
||||
$scope.cancel = () => $modalInstance.dismiss('cancel')
|
||||
$scope.create = () => $scope.$broadcast('create')
|
||||
return $scope.$on('done', (e, opts = {}) => {
|
||||
isBibFile = opts.name && opts.name.match(/^.*\.bib$$/)
|
||||
isBibFile = opts.name && /^.*\.bib$/.test(opts.name)
|
||||
if (opts.shouldReindexReferences || isBibFile) {
|
||||
ide.$scope.$emit('references:should-reindex', {})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user