Skip to content

Commit

Permalink
Change limit to 100 characters
Browse files Browse the repository at this point in the history
Signed-off-by: shedaniel <daniel@shedaniel.me>
  • Loading branch information
shedaniel committed Jun 6, 2022
1 parent 260b970 commit 09e6084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ open class QueryMappingsCommand(
ns.validateGuild(ctx)
val nsVersion = options.opt(version, VersionNamespaceConfig(ns))
val searchTermStr = options.opt(searchTerm).replace('.', '/').replace('#', '/')
require(searchTermStr.length < 50) { "Search term must be under 50 characters" }
require(searchTermStr.length < 100) { "Search term must be under 100 characters" }
execute(ctx, ns, nsVersion.version!!, searchTermStr, types)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class QueryTranslateMappingsCommand(
}

val searchTermStr = options.opt(searchTerm).replace('.', '/').replace('#', '/')
require(searchTermStr.length < 50) { "Search term must be under 50 characters" }
require(searchTermStr.length < 100) { "Search term must be under 100 characters" }
execute(ctx, src, dst, srcVersion.version!!, searchTermStr, types)
}
}
Expand Down

0 comments on commit 09e6084

Please sign in to comment.