mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(edit) onSave isContainStrAtBegin(text, error) -> /^error/.test(text)
This commit is contained in:
parent
ee5c15b901
commit
86093a5606
1 changed files with 1 additions and 1 deletions
|
|
@ -492,7 +492,7 @@ var CloudCmd, Util, DOM, CloudFunc, ace, DiffProto, diff_match_patch, Zip, MenuI
|
|||
function onSave(text) {
|
||||
var ret,
|
||||
size = Format.size(Value.length),
|
||||
isError = Util.isContainStrAtBegin(text, 'error'),
|
||||
isError = /^error/.test(text),
|
||||
path = Info.path,
|
||||
msg = '\nShould I save file anyway?';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue