|
@@ -922,8 +922,8 @@ func (s *Script) LoadScript(site, channel, user *string, code, script_file strin
|
|
regstr := S.ToString(-1)
|
|
regstr := S.ToString(-1)
|
|
text := S.ToString(-2)
|
|
text := S.ToString(-2)
|
|
textReg := regexp.MustCompile(regstr)
|
|
textReg := regexp.MustCompile(regstr)
|
|
- spaceReg := regexp.MustCompile("[\\s\u3000\u2003\u00a0]+")
|
|
|
|
- text = spaceReg.ReplaceAllString(text, "")
|
|
|
|
|
|
+ //spaceReg := regexp.MustCompile("[\\s\u3000\u2003\u00a0]+")
|
|
|
|
+ //text = spaceReg.ReplaceAllString(text, "")
|
|
result := textReg.FindString(text)
|
|
result := textReg.FindString(text)
|
|
isMatch := false
|
|
isMatch := false
|
|
if result != "" {
|
|
if result != "" {
|