mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1505 from sharelatex/ns-fix-regex
remove unecessary $ from regex GitOrigin-RevId: 5998536f71298daeab2845d070150451bbb4a858
This commit is contained in:
parent
b39626751a
commit
f01f80c2bb
1 changed files with 1 additions and 1 deletions
|
@ -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', {})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue