Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Fix typo in ALIAS transform
Browse files Browse the repository at this point in the history
s/regurlar/regular
  • Loading branch information
anish committed Feb 11, 2017
1 parent 5fe3f85 commit 55f6b37
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -73,7 +73,7 @@ public List<Metric> transform(List<Metric> metrics, List<String> constants) {
String aliasTypeForMetric = constants.get(1);

SystemAssert.requireArgument(REGRE.equals(aliasTypeForMetric) || LITERAL.equals(aliasTypeForMetric),
"Alias Transform can only performed for a regurlar expression or a string literal.");
"Alias Transform can only performed for a regular expression or a string literal.");
if (REGRE.equals(aliasTypeForMetric)) {
SystemAssert.requireArgument(constants.get(0).matches(SEARCH_REPLACE_FORM), "Please provide a valid search/replace form!");
}
Expand All @@ -93,7 +93,7 @@ public List<Metric> transform(List<Metric> metrics, List<String> constants) {
if(constants.size() == 4) {
String aliasTypeForScope = constants.get(3);
SystemAssert.requireArgument(REGRE.equals(aliasTypeForScope) || LITERAL.equals(aliasTypeForScope),
"Alias Transform can only performed for a regurlar expression or a string literal.");
"Alias Transform can only performed for a regular expression or a string literal.");
if (REGRE.equals(aliasTypeForScope)) {
SystemAssert.requireArgument(constants.get(2).matches(SEARCH_REPLACE_FORM), "Please provide a valid search/replace form!");
}
Expand Down

0 comments on commit 55f6b37

Please sign in to comment.