Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix typo in ALIAS transform
- Loading branch information
|
@@ -73,7 +73,7 @@ |
|
|
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!"); |
|
|
} |
|
@@ -93,7 +93,7 @@ |
|
|
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!"); |
|
|
} |
|
|