Permalink
Browse files

Fix typo in ALIAS transform

s/regurlar/regular
  • Loading branch information...
anish committed Feb 11, 2017
1 parent 5fe3f85 commit 55f6b37080ad1d1ef71339f4544b636aaf9b13de
@@ -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!");
}

0 comments on commit 55f6b37

Please sign in to comment.