mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
Use ide.validFileRegex, not hard coded regex
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ define [
|
||||
$scope.finishRenaming = () ->
|
||||
name = $scope.inputs.name
|
||||
|
||||
if !name.match(/^[^\*\/]*$/)
|
||||
if !name.match(new RegExp(ide.validFileRegex))
|
||||
# Showing the modal blurs the rename box which calls us again
|
||||
# so track this with the invalidModalShowing flag
|
||||
return if invalidModalShowing
|
||||
|
||||
Reference in New Issue
Block a user