diff options
Diffstat (limited to 'rulemgt-frontend')
-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()); } - } |