Code Review
/
holmes
/
rule-management.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
bugfix - rule update failure via GUI
[holmes/rule-management.git]
/
rulemgt-frontend
/
src
/
app
/
correlation-ruleInfo
/
ruleInfo.component.ts
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
(file)
--- 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 {
}
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) {
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());
}
}
return content.replace(pkgName, pkgName + new Date().getTime());
}
-
}
}