Merge pull request #1505 from sharelatex/ns-fix-regex

remove unecessary $ from regex

GitOrigin-RevId: 5998536f71298daeab2845d070150451bbb4a858
This commit is contained in:
Timothée Alby 2019-02-12 10:26:35 -05:00 committed by sharelatex
parent b39626751a
commit f01f80c2bb

View file

@ -130,7 +130,7 @@ define(['base'], function(App) {
$scope.cancel = () => $modalInstance.dismiss('cancel') $scope.cancel = () => $modalInstance.dismiss('cancel')
$scope.create = () => $scope.$broadcast('create') $scope.create = () => $scope.$broadcast('create')
return $scope.$on('done', (e, opts = {}) => { return $scope.$on('done', (e, opts = {}) => {
isBibFile = opts.name && opts.name.match(/^.*\.bib$$/) isBibFile = opts.name && /^.*\.bib$/.test(opts.name)
if (opts.shouldReindexReferences || isBibFile) { if (opts.shouldReindexReferences || isBibFile) {
ide.$scope.$emit('references:should-reindex', {}) ide.$scope.$emit('references:should-reindex', {})
} }