File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -901,7 +901,7 @@ function isNullableFromDescription(
901
901
parent : string ,
902
902
) : boolean {
903
903
const nullableRegex =
904
- / ( s p e c i f y | p a s s i n g | r e t u r n s ? | o r | b e | p o s s i b l y | o t h e r w i s e | e l s e | w r i t i n g | s e t ( t i n g ) ? ( ( t h i s ) ? | ( t h e n a m e ) ? ) ( t o ) ? ) [ ` ' ] ? n i l [ ` ' ] ? | ` ? n i l ` ? ( i f | w h e n | o t h e r w i s e | e r a s e s | i s r e t u r n e d ) / i
904
+ / ( s p e c i f y | p a s s i n g | r e t u r n s ? | o r | b e | p o s s i b l y | o t h e r w i s e | e l s e | w r i t i n g | s e t ( t i n g ) ? ( ( t h i s ) ? | ( t h e n a m e ) ? ) ( t o ) ? | r e a d a s ) [ ` ' ] ? n i l [ ` ' ] ? | ` ? n i l ` ? ( i f | w h e n | o t h e r w i s e | e r a s e s | i s r e t u r n e d ) / i
905
905
const nullable = member . description . match ( nullableRegex )
906
906
if ( nullable ) {
907
907
if ( ! member . description . match ( / [ ` ' ] n i l / i) ) {
Original file line number Diff line number Diff line change @@ -23263,7 +23263,7 @@ declare module "factorio:runtime" {
23263
23263
* @param index The index of the mapper to read.
23264
23264
* @see {@link https://lua-api.factorio.com/2.0.54/classes/LuaRecord.html#get_mapper Online documentation}
23265
23265
*/
23266
- get_mapper(index: uint, type: "from" | "to"): UpgradeMapperSource | UpgradeMapperDestination
23266
+ get_mapper(index: uint, type: "from" | "to"): UpgradeMapperSource | UpgradeMapperDestination | nil
23267
23267
/**
23268
23268
* Sets the module filter at the given index for this upgrade item.
23269
23269
*
@@ -23887,7 +23887,7 @@ declare module "factorio:runtime" {
23887
23887
* @param index The index of the mapper to read.
23888
23888
* @see {@link https://lua-api.factorio.com/2.0.54/classes/LuaRecord.html#get_mapper Online documentation}
23889
23889
*/
23890
- get_mapper(index: uint, type: "from" | "to"): UpgradeMapperSource | UpgradeMapperDestination
23890
+ get_mapper(index: uint, type: "from" | "to"): UpgradeMapperSource | UpgradeMapperDestination | nil
23891
23891
/**
23892
23892
* Sets the module filter at the given index for this upgrade item.
23893
23893
*
You can’t perform that action at this time.
0 commit comments