daasd commited on
Commit
176c725
·
verified ·
1 Parent(s): 360b4d1

Update PNG_info_web.js

Browse files
Files changed (1) hide show
  1. PNG_info_web.js +1 -1
PNG_info_web.js CHANGED
@@ -864,7 +864,7 @@ let imgStorage=(img)=>{
864
  // const match = inputString.match(/(?<=prompt:)(.*)(?=Negative prompt:)/s)[0].trim();]
865
  let tempRes=res[0].text
866
  result.prompt = res[0].text.match(/(.+)(?=(\nNegative prompt))/s)?
867
- res[0].text.match(/(.+)(?=(\nNegativeck prompt))/s)[0].trim():res[0].text.match(/(.+)(?=(\nSteps))/s)[0].trim()
868
  result.negativePrompt = res[0].text.match(/(?<=Negative prompt:)(.*)(?=\nSteps:)/s)?
869
  res[0].text.match(/(?<=Negative prompt:)(.*)(?=\nSteps:)/s)[0]:""
870
  //否定预查来确认第一个或者最后一个来确保不重复
 
864
  // const match = inputString.match(/(?<=prompt:)(.*)(?=Negative prompt:)/s)[0].trim();]
865
  let tempRes=res[0].text
866
  result.prompt = res[0].text.match(/(.+)(?=(\nNegative prompt))/s)?
867
+ res[0].text.match(/(.+)(?=(\nNegative prompt))/s)[0].trim():res[0].text.match(/(.+)(?=(\nSteps))/s)[0].trim()
868
  result.negativePrompt = res[0].text.match(/(?<=Negative prompt:)(.*)(?=\nSteps:)/s)?
869
  res[0].text.match(/(?<=Negative prompt:)(.*)(?=\nSteps:)/s)[0]:""
870
  //否定预查来确认第一个或者最后一个来确保不重复