mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Sub-type value modifier from MatchDataValue
This includes renaming the types.
This commit is contained in:
parent
4f6309a032
commit
33841e8888
27 changed files with 43 additions and 35 deletions
|
@ -4,7 +4,7 @@ def match_data_value(match_data, key)
|
|||
end
|
||||
|
||||
# Retrieves the string representation and base value
|
||||
# from a `Spectator::Matchers::PrefixedValue`
|
||||
# from a `Spectator::Matchers::PrefixedMatchDataValue`
|
||||
# in a `NamedTuple` returned by `Spectator::Matchers::MatchData#values`.
|
||||
def match_data_prefix(match_data, key)
|
||||
prefix = match_data.values.fetch(key) { raise "#{key} is missing" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue