diff options
author | Guangrong Fu <fu.guangrong@zte.com.cn> | 2021-10-09 10:23:28 +0800 |
---|---|---|
committer | tang peng <tang.peng5@zte.com.cn> | 2021-10-09 02:51:51 +0000 |
commit | 8a530964f1f76d8a3bc5524b140434aab45cd331 (patch) | |
tree | 122e7b1bc4b2fbc377eece7487943bddfcd18d43 /rulemgt-frontend/src | |
parent | b4b9a28599b41728239ed2f768f5944313896e8f (diff) |
bugfix - rule update failure via GUI
Issue-ID: HOLMES-482
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Change-Id: I2a9880c91aac4f3b77d5279b03947c04a46c83d8
(cherry picked from commit 6e6587bdad31fb2575be2680419cc86125339a9d)
Diffstat (limited to 'rulemgt-frontend/src')
-rw-r--r-- | rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts b/rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts index e75de3c..93a0662 100644 --- a/rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts +++ b/rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts @@ -304,7 +304,7 @@ export class RuleInfo implements OnInit { } replacePkgName (content: string): string { - let reg = /(package\s+[\w\d\.]+)(\s+|;).*/; + let reg = /(package\s+[\w\d\.]+)(\s.|;).*/; let groups = reg.exec(content); let pkgName = groups[1]; if (pkgName == null) { @@ -312,5 +312,4 @@ export class RuleInfo implements OnInit { } return content.replace(pkgName, pkgName + new Date().getTime()); } - } |