X-Git-Url: https://gerrit.onap.org/r/gitweb?p=holmes%2Frule-management.git;a=blobdiff_plain;f=rulemgt-frontend%2Fsrc%2Fapp%2Fcorrelation-ruleInfo%2FruleInfo.component.ts;h=93a0662d4ede9f9ff541add62b3b82f2b9fb079c;hp=e75de3c1edbc118fed8e8a801a89ec9057621bc6;hb=6e6587bdad31fb2575be2680419cc86125339a9d;hpb=b4b9a28599b41728239ed2f768f5944313896e8f 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()); } - }